Skip to content
Snippets Groups Projects
  • Max Sandholm's avatar
    19b526d4
    Use system color scheme (using a Qt stylesheet) #104 · 19b526d4
    Max Sandholm authored
    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.
    19b526d4
    History
    Use system color scheme (using a Qt stylesheet) #104
    Max Sandholm authored
    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.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
system.qss 942 B
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);
}