summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-02-28 03:20:27 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2020-02-28 03:20:27 +0100
commit9efa001bcfefe1dcd285a5a60dcdbf9ddd79a066 (patch)
tree188e6fdc2e1d1081c6167aced87f40b9111d43fa /resources
parentRevert change from TextEdit to TextArea (diff)
downloadnheko-9efa001bcfefe1dcd285a5a60dcdbf9ddd79a066.tar.xz
Fix high dpi scaling of avatars
Diffstat (limited to 'resources')
-rw-r--r--resources/styles/nheko-dark.qss8
-rw-r--r--resources/styles/nheko.qss8
-rw-r--r--resources/styles/system.qss9
3 files changed, 16 insertions, 9 deletions
diff --git a/resources/styles/nheko-dark.qss b/resources/styles/nheko-dark.qss

index 37c524c7..4efb6f30 100644 --- a/resources/styles/nheko-dark.qss +++ b/resources/styles/nheko-dark.qss
@@ -145,13 +145,15 @@ UserMentionsWidget { qproperty-highlightedTimestampColor: #e7e7e9; qproperty-hoverTimestampColor: #f4f5f8; - qproperty-avatarBgColor: #202228; - qproperty-avatarFgColor: white; - qproperty-bubbleFgColor: white; qproperty-bubbleBgColor: #4d84c7; } +RoomInfoListItem > Avatar { + qproperty-backgroundColor: #202228; + qproperty-textColor: white; +} + CommunitiesListItem { qproperty-highlightedBackgroundColor: #4d84c7; qproperty-hoverBackgroundColor: rgba(230, 230, 230, 30); diff --git a/resources/styles/nheko.qss b/resources/styles/nheko.qss
index 26482db8..4c59bad1 100644 --- a/resources/styles/nheko.qss +++ b/resources/styles/nheko.qss
@@ -111,13 +111,15 @@ RoomInfoListItem { qproperty-highlightedTimestampColor: #f4f4f5; qproperty-hoverTimestampColor: white; - qproperty-avatarBgColor: #eee; - qproperty-avatarFgColor: black; - qproperty-bubbleFgColor: white; qproperty-bubbleBgColor: #38A3D8; } +RoomInfoListItem > Avatar { + qproperty-backgroundColor: #eee; + qproperty-textColor: black; +} + CommunitiesListItem { qproperty-highlightedBackgroundColor: #38A3D8; qproperty-hoverBackgroundColor: rgba(200, 200, 200, 40); diff --git a/resources/styles/system.qss b/resources/styles/system.qss
index db8f4b4e..3ae3147a 100644 --- a/resources/styles/system.qss +++ b/resources/styles/system.qss
@@ -108,13 +108,16 @@ UserMentionsWidget { qproperty-highlightedTimestampColor: palette(highlightedtext); qproperty-hoverTimestampColor: palette(highlightedtext); - qproperty-avatarBgColor: palette(base); - qproperty-avatarFgColor: palette(text); - qproperty-bubbleBgColor: palette(base); qproperty-bubbleFgColor: palette(text); } +RoomInfoListItem > Avatar { + qproperty-backgroundColor: palette(base); + qproperty-textColor: palette(text); +} + + CommunitiesListItem { qproperty-highlightedBackgroundColor: palette(highlight); qproperty-hoverBackgroundColor: palette(light);