summary refs log tree commit diff
path: root/src/Utils.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Avoid unnecessary QColor -> QString conversionsJoseph Donofry2021-06-081-4/+3
|
* Fix stray 'a' in @room escapingNicolas Werner2021-05-111-1/+1
|
* Merge branch 'forward_message_feature' of https://github.com/Jedi18/nheko ↵Nicolas Werner2021-04-241-8/+26
|\ | | | | | | into Jedi18-forward_message_feature
| * fix macos build errortargetakhil2021-04-221-6/+12
| |
| * make util strip util functions non-static and move definition to cpp filetargetakhil2021-04-181-0/+18
| |
| * strip reply fallbacks from forwarded messagetargetakhil2021-04-181-8/+2
| |
* | Linkify matrix urisNicolas Werner2021-04-191-0/+2
|/
* Fix exif rotation in unencrypted roomsNicolas Werner2021-04-041-0/+7
|
* Tweak rainbow slightlyNicolas Werner2021-03-281-1/+4
|
* Fix emojis being split by rainbowsNicolas Werner2021-03-281-5/+5
|
* run formatterLordMZTE2021-03-281-1/+1
|
* use QString as buf in rainbowifyerLordMZTE2021-03-281-5/+4
|
* implement requested changesLordMZTE2021-03-281-10/+7
|
* remove incorrect includeLordMZTE2021-03-271-1/+0
|
* use QString to format in rainbow functionLordMZTE2021-03-271-6/+5
|
* rainbow now works with unicode!LordMZTE2021-03-271-7/+15
|
* use qtextboundary finder to rainbowify. (not working for unicode chars yet)LordMZTE2021-03-271-5/+13
|
* fix size typeLordMZTE2021-03-271-1/+2
|
* add /rainbow commandLordMZTE2021-03-261-4/+75
|
* Clean up notification code a bitNicolas Werner2021-03-171-0/+29
|
* Switch readImage to take a reference instead of a pointerLoren Burkholder2021-03-171-2/+2
| | | | There was nowhere that an actual pointer was passed, and I wanted to do references for something else.
* Create function for processing whether a message is a replyLoren Burkholder2021-03-171-0/+7
|
* Reduce allocations when escaping emojiNicolas Werner2021-03-141-6/+15
|
* Add linebreaks to fingerprintNicolas Werner2021-03-061-3/+7
|
* Update license headersNicolas Werner2021-03-051-0/+4
|
* Fix wrong font used in emoji escapeNicolas Werner2021-02-091-1/+1
|
* make linttrilene2021-02-071-1/+2
|
* Use UserSettings where possibleLoren Burkholder2021-02-041-11/+3
|
* Fix emojis with fe0f in the middleNicolas Werner2021-02-011-2/+1
|
* lintNicolas Werner2020-12-251-2/+3
|
* Fix some compiler warningsNicolas Werner2020-12-251-11/+11
|
* Fix black cat emojiNicolas Werner2020-12-151-2/+3
|
* lintNicolas Werner2020-12-081-2/+2
|
* Add gitlab ciNicolas Werner2020-11-271-1/+1
|
* Fix race when reading members from dbNicolas Werner2020-11-251-15/+15
|
* Add file uploadingNicolas Werner2020-11-251-2/+3
|
* clang-formattrilene2020-11-131-1/+1
|
* Supress unused var warning for STUN_SERVER (used only if gstreamer supported)Nicolas Werner2020-10-301-1/+1
|
* Optimize buildNicolas Werner2020-10-271-1/+1
|
* Fix infinite pagination properly now.Nicolas Werner2020-10-231-1/+1
|
* Trade CPU usage for 30MB of members in RAMNicolas Werner2020-10-221-1/+1
|
* Support voice callstrilene2020-07-101-16/+24
|
* Fix Qt5.15 issuesNicolas Werner2020-06-051-2/+2
| | | | fixes #214
* Added an optional feature to show bigger emoji-only messages with 3 or less ↵lkito2020-05-211-3/+9
| | | | emoji
* Optimize RoomList sortingNicolas Werner2020-04-301-3/+5
| | | | | Keep the almost sorted list around and sort by the raw timestamp value instead of doing the expensive toMSecSinceEpoch conversion.
* Respect exif rotation of imagesNicolas Werner2020-04-261-0/+11
| | | | | | 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.
* Merge branch 'master' into decrypt-sidebarJoseph Donofry2020-04-231-0/+6
|\
| * Terminate user color calculation, when no solution can be foundNicolas Werner2020-04-221-0/+6
| | | | | | | | fixes #172
* | Fix encrypted messages not showing a user in the sidebarNicolas Werner2020-04-231-2/+3
|/
* Fix stuck unread messages by storing state events in the dbNicolas Werner2020-02-241-2/+2
| | | | | | This may increase the db size by a factor of 1000 in the worst case and it will need some fixes, when we decide to not show some events in the timeline, but it should work for now.
* Fix bug in html tag escapingNicolas Werner2020-02-061-3/+2
|
* Remove more unneeded headersNicolas Werner2020-01-311-1/+0
|
* Optimize includes a bitNicolas Werner2020-01-311-13/+19
|
* Enable ban and kick button in UserProfile (and try to fix centering)Nicolas Werner2020-01-301-1/+2
|
* Don't send useless formatted_bodiesNicolas Werner2020-01-271-0/+4
|
* Remove translations from reply fallbackNicolas Werner2020-01-241-9/+9
|
* Minor tweak to one instance of QSettings not necessarily using the same ↵Joseph Donofry2020-01-231-1/+1
| | | | settings as everything else
* Increase emoji rangeNicolas Werner2020-01-211-1/+1
|
* Fix colors in typing display, when username contains emojiNicolas Werner2020-01-211-1/+4
|
* Improve emoji escapingNicolas Werner2020-01-211-5/+15
|
* Linkify links before sendingNicolas Werner2020-01-211-3/+24
|
* Don't require Qt5.12 just for QByteArray::compareNicolas Werner2020-01-161-2/+2
|
* Escape blacklisted html tagsNicolas Werner2020-01-141-13/+43
|
* Reduce Cache.h includes further via one forward declarationNicolas Werner2019-12-151-0/+1
|
* Reduce overhead of Cache.hNicolas Werner2019-12-151-1/+1
|
* Update to c++17Nicolas Werner2019-12-141-36/+31
|
* Make replies format nicerNicolas Werner2019-11-231-4/+1
| | | | Also lays a bit of groundwork for better reply rendering
* Fix translation of roomlist message previewNicolas Werner2019-11-231-5/+0
| | | | | | | | This also makes long messages unreadable, because we don't shorten long usernames anymore. We may eventually want to do that again, but it is hard with translations and we probably want to shorten the displayname more, as before this change the message was only ever as long as the timestamp, which is usually just 5 characters...
* Add native themeing to QML (where possible)Nicolas Werner2019-11-231-13/+23
|
* Fix QML emojisNicolas Werner2019-11-231-3/+2
|
* escape html before parsing commonmarkrnhmjoj2019-09-251-1/+16
|
* Use 'system' theme as default if QT_QPA_PLATFORMTHEME is setJoseph Donofry2019-08-101-6/+13
| | | | | | | On first launch, before the user has configured any settings, check the value of the QT_QPA_PLATFORMTHEME environment var. If it is set, use the system theme as the default instead of the light theme. This fixes #72.
* Try to localise timestampsNicolas Werner2019-07-281-10/+10
| | | | | | | | 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
* Fix bug with emoji font setting and clean lintingJoseph Donofry2019-07-261-0/+23
|
* Fix deprecated function call issues with Qt 5.13Joseph Donofry2019-07-041-7/+40
| | | | Update to mtxclient 0.3.0
* Fix santizize=undefined warning (overflow)Nicolas Werner2019-06-271-3/+3
|
* Further Improve Reply FunctionalityJoseph Donofry2019-06-131-0/+14
| | | | | | | 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.
* Simplify linkifyMessageNicolas Werner2019-05-011-58/+2
| | | | | | | | | | | | | | | | | 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
* Improve color generation performanceredsky172019-02-081-9/+0
| | | | | | 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.
* Update user colors to use Cache vs Utilsredsky172019-01-261-22/+0
| | | | | | | 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.
* Author Color Fixesredsky172019-01-201-0/+24
| | | | | | | | | | 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.
* Update user id color generationredsky172019-01-201-60/+72
| | | | | | | | | | | | | | | 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.
* Modified the code that generates user's colors so that it willredsky172019-01-181-5/+105
| | | | | | | | | | | | | 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.
* Make the author text slightly large.redsky172019-01-181-0/+17
| | | | Add author color generated based on user id.
* Remove the code that removed paragraph tags from markdown -> html.redsky172019-01-181-4/+0
| | | | | | | This fixes #2, but reverts mujx#438. I do not think mujx#438 was a valid issue, as it complained about the display of valid HTML on riot, which speaks more to how Riot styles things than about an issue in nheko itself.
* Adjustments for the minimized sidebarKonstantinos Sideris2018-10-071-0/+14
|
* Add option to configure the font sizeKonstantinos Sideris2018-10-011-0/+12
| | | | fixes #161
* v0.6.0Konstantinos Sideris2018-09-211-6/+7
|
* Add method to center widgets & clean up unused headersKonstantinos Sideris2018-09-211-0/+15
|
* Improvements on the system themeKonstantinos Sideris2018-09-191-0/+14
|
* Fix compile warningsKonstantinos Sideris2018-09-181-3/+5
|
* Mark unread rooms as such in the room listKonstantinos Sideris2018-09-131-0/+1
| | | | fixes #313
* Temporary fix to work with mx-reply tagsKonstantinos Sideris2018-09-131-3/+12
|
* Strip paragraph tagsKonstantinos Sideris2018-09-131-6/+6
| | | | fixes #438
* Trim whitespace from text messagesKonstantinos Sideris2018-09-121-12/+8
|
* Enable html attributesKonstantinos Sideris2018-09-121-1/+8
|
* Switch to libcmarkKonstantinos Sideris2018-09-111-5/+10
|
* Initial support for sending markdown formatted messagesKonstantinos Sideris2018-09-071-0/+23
| | | | fixes #283
* Fix double href links on username pillsKonstantinos Sideris2018-09-071-0/+51
|
* Merge matrix-structs into the client libKonstantinos Sideris2018-09-011-19/+19
|
* Only call /sync when retrying initial sync (#422)Konstantinos Sideris2018-08-301-3/+1
|
* Add device ID and device fingerprint to settings page like in Riot. (#407)Rudi Floren2018-08-211-0/+15
|
* Remove pixel ratio from image scalingKonstantinos Sideris2018-08-201-6/+0
|
* Consider the scale ratio when scaling down imagesKonstantinos Sideris2018-08-011-1/+31
| | | | fixes #393
* Use double instead of int when scaling pixmaps (#393)Konstantinos Sideris2018-07-301-1/+3
|
* Add option to specify the scale factorKonstantinos Sideris2018-07-221-0/+17
| | | | | | fixes #357 fixes #335 fixes #230
* Add option to ignore key requests altogetherKonstantinos Sideris2018-07-221-0/+26
|
* Show device list in user profile & add option to create 1-1 chatKonstantinos Sideris2018-07-201-0/+8
|
* Move all files under src/Konstantinos Sideris2018-07-171-0/+188