forked from mirror/nheko
Use system color scheme (using a Qt stylesheet) #104
The color scheme of nheko obeys the default color theme of Qt (i.e. the system theme). It uses a Qt stylesheet to accomplish this, which means replacing the color theme with a custom theme would only be a matter of writing a new style sheet and loading it into the app.remotes/origin/HEAD
parent
21fdb26bd4
commit
19b526d453
@ -0,0 +1,56 @@ |
||||
* { |
||||
color: #333; |
||||
} |
||||
|
||||
QLabel { |
||||
color: #333; |
||||
} |
||||
|
||||
#chatPage, #chatPage > * { background-color: white; } |
||||
|
||||
TimelineView, TimelineView > * { background-color: white; } |
||||
|
||||
QMenu, QMenu > * { background-color: white; } |
||||
|
||||
FlatButton { qproperty-foregroundColor: #333; } |
||||
|
||||
RaisedButton { qproperty-foregroundColor: white; } |
||||
|
||||
RoomInfoListItem |
||||
{ |
||||
qproperty-highlightedBackgroundColor: #38A3D8; |
||||
qproperty-hoverBackgroundColor: rgba(200, 200, 200, 128); |
||||
qproperty-backgroundColor: white; |
||||
|
||||
qproperty-titleColor: #333; |
||||
qproperty-subtitleColor: #5d6565; |
||||
|
||||
qproperty-highlightedTitleColor: white; |
||||
qproperty-highlightedSubtitleColor: white; |
||||
} |
||||
|
||||
#ChatPageLoadSpinner { |
||||
qproperty-color: #acc7dc; |
||||
} |
||||
|
||||
#FileUploadSpinner { |
||||
qproperty-color: #333; |
||||
} |
||||
|
||||
UserInfoWidget, UserInfoWidget > * { |
||||
background-color: #d6dde3; |
||||
color: #ebebeb; |
||||
} |
||||
|
||||
Avatar { |
||||
qproperty-textColor: black; |
||||
qproperty-backgroundColor: #eee; |
||||
} |
||||
|
||||
#displayNameLabel { |
||||
color: #171919; |
||||
} |
||||
|
||||
#userIdLabel { |
||||
color: #555459; |
||||
} |
@ -0,0 +1,39 @@ |
||||
OverlayWidget, OverlayWidget > * { |
||||
background-color: palette(window); |
||||
} |
||||
|
||||
#mainContent, #mainContent > * { |
||||
background-color: palette(base); |
||||
} |
||||
|
||||
TimelineView, TimelineView > *, TimelineItem, TimelineItem > * { |
||||
background-color: palette(base); |
||||
} |
||||
|
||||
FlatButton { |
||||
qproperty-foregroundColor: palette(text); |
||||
} |
||||
|
||||
RoomInfoListItem { |
||||
qproperty-highlightedBackgroundColor: palette(highlight); |
||||
qproperty-hoverBackgroundColor: palette(dark); |
||||
qproperty-backgroundColor: palette(window); |
||||
|
||||
qproperty-titleColor: palette(text); |
||||
qproperty-subtitleColor: palette(text); |
||||
|
||||
qproperty-highlightedTitleColor: palette(text); |
||||
qproperty-highlightedSubtitleColor: palette(text); |
||||
} |
||||
|
||||
LoadingIndicator { |
||||
qproperty-color: palette(text); |
||||
} |
||||
|
||||
#ChatPageLoadSpinner { |
||||
qproperty-color: #acc7dc; |
||||
} |
||||
|
||||
UserInfoWidget, UserInfoWidget > * { |
||||
background-color: palette(window); |
||||
} |
Loading…
Reference in new issue