Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/Nheko-Reborn/nheko.git. Pull mirroring updated .
  1. May 21, 2020
  2. Apr 30, 2020
    • Nicolas Werner's avatar
      Optimize RoomList sorting · 641a883b
      Nicolas Werner authored
      Keep the almost sorted list around and sort by the raw timestamp value
      instead of doing the expensive toMSecSinceEpoch conversion.
      641a883b
  3. Apr 26, 2020
    • Nicolas Werner's avatar
      Respect exif rotation of images · 28adc9dc
      Nicolas Werner authored
      Sometimes thumbnails still have the wrong dimensions, as they are scaled
      to fit inside a rectange of the reported size in the image. Not sure,
      who is wrong there, the media repo or we.
      28adc9dc
  4. Apr 23, 2020
  5. Apr 22, 2020
  6. Feb 24, 2020
  7. Feb 06, 2020
  8. Jan 31, 2020
  9. Jan 30, 2020
  10. Jan 27, 2020
  11. Jan 24, 2020
  12. Jan 23, 2020
  13. Jan 21, 2020
  14. Jan 16, 2020
  15. Jan 14, 2020
  16. Dec 15, 2019
  17. Dec 14, 2019
  18. Nov 23, 2019
  19. Sep 24, 2019
  20. Sep 01, 2019
  21. Aug 10, 2019
  22. Jul 28, 2019
    • Nicolas Werner's avatar
      Try to localise timestamps · 1c9cc339
      Nicolas Werner authored
      I'm not sure, if that is the right way, but Qt doesn't really have a way
      to format custom localised dates, so I tried to find the closest
      approximations to what we currently have.
      
      Relates to #69
      1c9cc339
  23. Jul 26, 2019
  24. Jul 05, 2019
  25. Jun 27, 2019
  26. Jun 14, 2019
    • Joe Donofry's avatar
      Further Improve Reply Functionality · 129beb57
      Joe Donofry authored
      Quoted replies now include matrix.to links for the event and the user.
      UI Rendering has been (slightly) improved... still very WIP.
      Restructured the reply structure in the code for future usability
      improvements.
      Verified
      129beb57
  27. May 01, 2019
    • Nicolas Werner's avatar
      Simplify linkifyMessage · 23eef9e1
      Nicolas Werner authored
      Parsing html as xml has inherent problems, most notable there are many
      matrix clients that don't escape ampersands in urls of mx-replies, etc.
      (See issue #18)
      
      This also removes the replacement of <mx-reply> as it isn't strictly
      needed.
      
      Also the QRegExp is replaced with the Qt5 QRegularExpression for
      perfomance and because it supports lookahead and lookbehind.
      
      I'm pretty sure that the original code also replaced href="" with
      href=\"\", which was probably wrong, but I'm not to sure about that.
      
      Fixes #18
      23eef9e1
  28. Feb 08, 2019
    • Joe Donofry's avatar
      Improve color generation performance · 13663ad5
      Joe Donofry authored
      Colors are generated asynchronously now and the TimelineItem is
      updated when the color generation finishes.  This allows the UI
      to stay responsive while new colors are being generated.
      13663ad5
  29. Jan 26, 2019
    • Joe Donofry's avatar
      Update user colors to use Cache vs Utils · 2ba51c82
      Joe Donofry authored
      User colors are now stored in cache.  This is consistent
      with other similar variables.  I think there's a bug
      right now where it doesn't properly refresh colors
      for the TimeLineItem when the theme is changed.
      2ba51c82
  30. Jan 20, 2019
    • Joe Donofry's avatar
      Author Color Fixes · 237c7ad1
      Joe Donofry authored
      Author color is now cached so that it will not be re-calculated
      each time a new message is posted.  This cache gets cleared when
      the theme is changed.
      
      Additionally, the author color is now automatically refreshed
      when the theme is changed, fixing the issue where you had to
      change rooms before the colors would switch.
      237c7ad1
    • Joe Donofry's avatar
      Update user id color generation · b3f7c13e
      Joe Donofry authored
      Update the author color generation.  Now, instead of generating
      an entire hex string based on the user id, the user id instead
      is used to generate a hue value.  After this hue value is created,
      there is some logic to tweak first the lightness and then saturation
      values to achieve a readable color (in contrast to the background).
      
      This change makes it so that user colors will not vary as wildly
      between the different themes.
      
      The values still are not cached and still do not update
      initially when the theme is changed.  Both of these things
      will be resolved.
      b3f7c13e
  31. Jan 18, 2019
    • Joe Donofry's avatar
      Modified the code that generates user's colors so that it will · 50e382f5
      Joe Donofry authored
      work regardless of the theme choices the user makes.  The code
      now incorporates the contrast between the background color and the
      color generated by the user_name when picking colors.  It currently
      has two 'big' issues:
      1. Colors are not cached.  I am planning on adding a QHash for this
      a little later.  This should improve performance by not calculating
      the color for the same users over and over and over again.
      2. Theme changes do not trigger the colors to get refreshed.
      Currently, you will have to switch to a different room and back
      to get the colors to refresh.
      50e382f5
Loading