diff options
author | lkito <lkiti17@freeuni.edu.ge> | 2020-05-16 01:27:41 +0400 |
---|---|---|
committer | lkito <lkiti17@freeuni.edu.ge> | 2020-05-16 17:15:43 +0400 |
commit | 2c21f6e3fa6d876e594178fe826d7f2de299a6cf (patch) | |
tree | 733a4b600930eddaf4a26e8a8af756059699aee9 /src/UserSettingsPage.h | |
parent | Bump mtxclient version (diff) | |
download | nheko-2c21f6e3fa6d876e594178fe826d7f2de299a6cf.tar.xz |
Implemented optional message body highlighting feature.
Diffstat (limited to 'src/UserSettingsPage.h')
-rw-r--r-- | src/UserSettingsPage.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/UserSettingsPage.h b/src/UserSettingsPage.h index 6b9834ea..088bbfb5 100644 --- a/src/UserSettingsPage.h +++ b/src/UserSettingsPage.h @@ -44,6 +44,11 @@ public: void load(); void applyTheme(); void setTheme(QString theme); + void setMessageHoverHighlight(bool state) + { + isMessageHoverHighlightEnabled_ = state; + save(); + } void setTray(bool state) { isTrayEnabled_ = state; @@ -118,6 +123,7 @@ public: } QString theme() const { return !theme_.isEmpty() ? theme_ : defaultTheme_; } + bool isMessageHoverHighlightEnabled() const { return isMessageHoverHighlightEnabled_; } bool isTrayEnabled() const { return isTrayEnabled_; } bool isStartInTrayEnabled() const { return isStartInTrayEnabled_; } bool isGroupViewEnabled() const { return isGroupViewEnabled_; } @@ -144,6 +150,7 @@ private: ? "light" : "system"; QString theme_; + bool isMessageHoverHighlightEnabled_; bool isTrayEnabled_; bool isStartInTrayEnabled_; bool isGroupViewEnabled_; @@ -203,6 +210,7 @@ private: Toggle *groupViewToggle_; Toggle *timelineButtonsToggle_; Toggle *typingNotifications_; + Toggle *messageHoverHighlight_; Toggle *sortByImportance_; Toggle *readReceipts_; Toggle *markdownEnabled_; |