mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-18 19:50:38 +01:00
Change darwin to macos
This commit is contained in:
parent
2ff971878d
commit
0c0a8d70f3
@ -1,7 +1,6 @@
|
||||
#playlist {
|
||||
background-color: %palette-base;
|
||||
alternate-background-color: %palette-alternate-base;
|
||||
|
||||
}
|
||||
|
||||
#playlist[default_background_enabled = "true"] {
|
||||
@ -45,11 +44,11 @@ QToolButton:pressed[popupMode="1"] {
|
||||
padding-right: 16px;
|
||||
}
|
||||
|
||||
darwin {
|
||||
macos {
|
||||
font-size: 11pt;
|
||||
}
|
||||
|
||||
darwin QMenu {
|
||||
macos QMenu {
|
||||
font-size: 13pt;
|
||||
}
|
||||
|
||||
|
@ -44,6 +44,8 @@ void StyleSheetLoader::SetStyleSheet(QWidget *widget, const QString &filename) {
|
||||
|
||||
void StyleSheetLoader::UpdateStyleSheet(QWidget *widget) {
|
||||
|
||||
if (!widget || !filenames_.contains(widget)) return;
|
||||
|
||||
QString filename(filenames_[widget]);
|
||||
|
||||
// Load the file
|
||||
@ -88,7 +90,7 @@ void StyleSheetLoader::UpdateStyleSheet(QWidget *widget) {
|
||||
ReplaceColor(&contents, "LinkVisited", p, QPalette::LinkVisited);
|
||||
|
||||
#ifdef Q_OS_MACOS
|
||||
contents.replace("darwin", "*");
|
||||
contents.replace("macos", "*");
|
||||
#endif
|
||||
|
||||
widget->setStyleSheet(contents);
|
||||
|
Loading…
Reference in New Issue
Block a user