From c6cf6c2b4148c30f5e1dd0ff744baf0293cfe1ff Mon Sep 17 00:00:00 2001
From: Konstantinos Sideris <sideris.konstantin@gmail.com>
Date: Thu, 23 Nov 2017 16:25:58 +0200
Subject: [PATCH] Fix qss formatting

---
 resources/styles/nheko.qss  | 53 ++++++++++++++++++++++---------------
 resources/styles/system.qss | 42 ++++++++++++++++-------------
 2 files changed, 55 insertions(+), 40 deletions(-)

diff --git a/resources/styles/nheko.qss b/resources/styles/nheko.qss
index b75ec95a5..f156f3053 100644
--- a/resources/styles/nheko.qss
+++ b/resources/styles/nheko.qss
@@ -1,39 +1,48 @@
 QLabel {
-        color: #333;
+    color: #333;
 }
 
-#chatPage, #chatPage > * { background-color: white; }
+#chatPage,
+#chatPage > * { 
+    background-color: white; 
+}
 
-TimelineView, TimelineView > * { background-color: white; }
+TimelineView,
+TimelineView > * {
+    background-color: white; 
+}
 
-FlatButton { qproperty-foregroundColor: #333; }
+FlatButton { 
+    qproperty-foregroundColor: #333; 
+}
 
-RaisedButton { qproperty-foregroundColor: white; }
+RaisedButton { 
+    qproperty-foregroundColor: white; 
+}
 
-RoomInfoListItem
-{
-        qproperty-highlightedBackgroundColor: #38A3D8;
-        qproperty-hoverBackgroundColor: rgba(200, 200, 200, 128);
-        qproperty-backgroundColor: white;
+RoomInfoListItem {
+    qproperty-highlightedBackgroundColor: #38A3D8;
+    qproperty-hoverBackgroundColor: rgba(200, 200, 200, 128);
+    qproperty-backgroundColor: white;
 
-        qproperty-titleColor: #333;
-        qproperty-subtitleColor: #5d6565;
+    qproperty-titleColor: #333;
+    qproperty-subtitleColor: #5d6565;
 
-        qproperty-highlightedTitleColor: white;
-        qproperty-highlightedSubtitleColor: white;
+    qproperty-highlightedTitleColor: white;
+    qproperty-highlightedSubtitleColor: white;
 }
 
 #ChatPageLoadSpinner {
-        qproperty-color: #acc7dc;
+    qproperty-color: #acc7dc;
 }
 
 #FileUploadSpinner {
-        qproperty-color: #333;
+    qproperty-color: #333;
 }
 
 UserInfoWidget, UserInfoWidget > * {
-        background-color: #d6dde3;
-        color: #ebebeb;
+    background-color: #d6dde3;
+    color: #ebebeb;
 }
 
 UserSettingsPage {
@@ -41,16 +50,16 @@ UserSettingsPage {
 }
 
 Avatar {
-        qproperty-textColor: black;
-        qproperty-backgroundColor: #eee;
+    qproperty-textColor: black;
+    qproperty-backgroundColor: #eee;
 }
 
 #displayNameLabel {
-        color: #171919;
+    color: #171919;
 }
 
 #userIdLabel {
-        color: #555459;
+    color: #555459;
 }
 
 LogoutDialog {
diff --git a/resources/styles/system.qss b/resources/styles/system.qss
index 2f15271fd..c81b8652b 100644
--- a/resources/styles/system.qss
+++ b/resources/styles/system.qss
@@ -1,39 +1,45 @@
-OverlayWidget, OverlayWidget > * {
-        background-color: palette(window);
+OverlayWidget,
+OverlayWidget > * {
+    background-color: palette(window);
 }
 
-#mainContent, #mainContent > * {
-        background-color: palette(base);
+#mainContent,
+#mainContent > * {
+    background-color: palette(base);
 }
 
-TimelineView, TimelineView > *, TimelineItem, TimelineItem > * {
-        background-color: palette(base);
+TimelineView,
+TimelineView > *,
+TimelineItem,
+TimelineItem > * {
+    background-color: palette(base);
 }
 
 FlatButton {
-        qproperty-foregroundColor: palette(text);
+    qproperty-foregroundColor: palette(text);
 }
 
 RoomInfoListItem {
-        qproperty-highlightedBackgroundColor: palette(highlight);
-        qproperty-hoverBackgroundColor: palette(dark);
-        qproperty-backgroundColor: palette(window);
+    qproperty-highlightedBackgroundColor: palette(highlight);
+    qproperty-hoverBackgroundColor: palette(dark);
+    qproperty-backgroundColor: palette(window);
 
-        qproperty-titleColor: palette(text);
-        qproperty-subtitleColor: palette(text);
+    qproperty-titleColor: palette(text);
+    qproperty-subtitleColor: palette(text);
 
-        qproperty-highlightedTitleColor: palette(text);
-        qproperty-highlightedSubtitleColor: palette(text);
+    qproperty-highlightedTitleColor: palette(text);
+    qproperty-highlightedSubtitleColor: palette(text);
 }
 
 LoadingIndicator {
-        qproperty-color: palette(text);
+    qproperty-color: palette(text);
 }
 
 #ChatPageLoadSpinner {
-        qproperty-color: #acc7dc;
+    qproperty-color: #acc7dc;
 }
 
-UserInfoWidget, UserInfoWidget > * {
-        background-color: palette(window);
+UserInfoWidget,
+UserInfoWidget > * {
+    background-color: palette(window);
 }
-- 
GitLab