Skip to content

Commit

Permalink
Implement negative income coloring for all themes
Browse files Browse the repository at this point in the history
Colors may not be optimal but work for the most part.
  • Loading branch information
lmoureaux committed May 15, 2022
1 parent 8fbe12e commit 1565124
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 0 deletions.
14 changes: 14 additions & 0 deletions data/themes/gui-qt/Classic/resource.qss
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,20 @@ top_bar_widget {
selection-color: rgba(85, 25, 25, 185);
}

/* Negative income */
/* TODO Qt6:
* https://doc.qt.io/qt-6/widgets-changes-qt6.html#style-sheet-changes
*/
gold_widget[current_warning="1"] {
color: #aa0000;
}

/* Out of gold */
gold_widget[current_warning="2"] {
color: #aa0000;
border-color: #aa0000;
}

unit_hud_selector {
color: white;
background-image:url(LittleFingerpattern.png);
Expand Down
14 changes: 14 additions & 0 deletions data/themes/gui-qt/Necrophos/resource.qss
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,20 @@ top_bar_widget {
selection-color: rgba(85, 25, 25, 185);
}

/* Negative income */
/* TODO Qt6:
* https://doc.qt.io/qt-6/widgets-changes-qt6.html#style-sheet-changes
*/
gold_widget[current_warning="1"] {
color: #aa0000;
}

/* Out of gold */
gold_widget[current_warning="2"] {
color: #aa0000;
border-color: #aa0000;
}

hud_message_box QDialogButtonBox QPushButton {
border-radius: 0px;
padding: 0px;
Expand Down
14 changes: 14 additions & 0 deletions data/themes/gui-qt/System/resource.qss
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,20 @@ top_bar_widget {
selection-color: rgba(85, 25, 25, 185);
}

/* Negative income */
/* TODO Qt6:
* https://doc.qt.io/qt-6/widgets-changes-qt6.html#style-sheet-changes
*/
gold_widget[current_warning="1"] {
color: red;
}

/* Out of gold */
gold_widget[current_warning="2"] {
color: red;
border-color: red;
}

hud_unit_combat {
selection-background-color: rgba(0, 0, 75,165);
alternate-background-color: #0000AA;
Expand Down
14 changes: 14 additions & 0 deletions data/themes/gui-qt/TheLastLaserMaster/resource.qss
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,20 @@ top_bar_widget {
selection-color: rgba(85, 25, 25, 185);
}

/* Negative income */
/* TODO Qt6:
* https://doc.qt.io/qt-6/widgets-changes-qt6.html#style-sheet-changes
*/
gold_widget[current_warning="1"] {
color: red;
}

/* Out of gold */
gold_widget[current_warning="2"] {
color: red;
border-color: red;
}

hud_action {
selection-background-color: rgba(125, 125, 0, 200);
color: rgb(100,100,0);
Expand Down
7 changes: 7 additions & 0 deletions data/themes/gui-qt/Web/resource.qss
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,13 @@ chat_widget QCheckBox::indicator:checked:hover {
top_bar QToolButton {
background: qlineargradient(x1: 0.0, y1: 0.0, x2: 0.0, y2: 1.0, stop: 0.0 rgba(246, 242, 232, 100%), stop: 1.0 rgba(243, 236, 221, 100%)); }


gold_widget[current_warning="1"] {
color: hsl(341, 93%, 43%); }

gold_widget[current_warning="2"] {
color: hsl(341, 93%, 43%); border-color: hsl(341, 93%, 43%); }

hud_message_box, hud_input_box {
/*background-color: transparent;*/
color: #280f0b;
Expand Down
14 changes: 14 additions & 0 deletions data/themes/gui-qt/Web/resource.scss
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,20 @@ top_bar QToolButton {
background: $gradient;
}

/* Negative income */
/* TODO Qt6:
* https://doc.qt.io/qt-6/widgets-changes-qt6.html#style-sheet-changes
*/
gold_widget[current_warning="1"] {
color: $redish;
}

/* Out of gold */
gold_widget[current_warning="2"] {
color: $redish;
border-color: $redish;
}

hud_message_box, hud_input_box {
/*background-color: transparent;*/
color: $red-10;
Expand Down

0 comments on commit 1565124

Please sign in to comment.