Fix high dpi scaling of avatars
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);
|