Skip to content

Commit

Permalink
Traktor: More fixes to themes.
Browse files Browse the repository at this point in the history
  • Loading branch information
apistol78 committed May 10, 2024
1 parent ed5d1f3 commit 267ae97
Show file tree
Hide file tree
Showing 10 changed files with 509 additions and 138 deletions.
4 changes: 2 additions & 2 deletions code/Ui/DockPane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -655,12 +655,12 @@ void DockPane::draw(Canvas& canvas)
const bool visible = w.widget->isVisible(false);
if (visible)
{
canvas.setForeground(ss->getColor(this, L"color"));
canvas.setForeground(ss->getColor(this, L"tab-color-active"));
canvas.setBackground(ss->getColor(this, L"tab-selected-background-color"));
}
else
{
canvas.setForeground(ss->getColor(this, L"color-disabled"));
canvas.setForeground(ss->getColor(this, L"tab-color-inactive"));
canvas.setBackground(ss->getColor(this, L"tab-background-color"));
}
canvas.fillRect(rcTab);
Expand Down
8 changes: 8 additions & 0 deletions resources/runtime/themes/Dark/StyleSheet.xss
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,14 @@
<first>tab-selected-background-color</first>
<second>0, 122, 204, 255</second>
</item>
<item>
<first>tab-color-active</first>
<second>255, 255, 255, 255</second>
</item>
<item>
<first>tab-color-inactive</first>
<second>255, 255, 255, 255</second>
</item>
<item>
<first>gripper-color</first>
<second>90, 90, 90, 255</second>
Expand Down
35 changes: 26 additions & 9 deletions resources/runtime/themes/Light/StyleSheet.xss
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
<item>
<typeName>traktor.Object</typeName>
<colors>
<item>
<first>theme-color</first>
<second>0, 0, 0, 255</second>
</item>
<item>
<first>background-color</first>
<second>239, 239, 242, 255</second>
Expand Down Expand Up @@ -39,6 +35,10 @@
<first>color-disabled</first>
<second>142, 140, 140, 255</second>
</item>
<item>
<first>theme-color</first>
<second>0, 0, 0, 255</second>
</item>
</colors>
</item>
<item>
Expand Down Expand Up @@ -164,18 +164,35 @@
<first>caption-color-no-focus</first>
<second>30, 30, 30, 255</second>
</item>
</colors>
</item>
<item>
<typeName>traktor.ui.DockPane</typeName>
<colors>
<item>
<first>gripper-color-focus</first>
<second>255, 255, 255, 255</second>
</item>
<item>
<first>gripper-color-no-focus</first>
<first>gripper-color</first>
<second>160, 160, 160, 255</second>
</item>
<item>
<first>splitter-color</first>
<second>204, 200, 219, 255</second>
</item>
<item>
<first>tab-background-color</first>
<second>239, 239, 242, 255</second>
</item>
<item>
<first>tab-selected-background-color</first>
<second>0, 122, 204, 255</second>
</item>
<item>
<first>tab-color</first>
<second>255, 255, 255, 255</second>
</item>
<item>
<first>tab-color-inactive</first>
<second>30, 30, 30, 255</second>
</item>
</colors>
</item>
<item>
Expand Down
10 changes: 9 additions & 1 deletion resources/runtime/themes/Monokai/StyleSheet.xss
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,20 @@
</item>
<item>
<first>tab-selected-background-color</first>
<second>0, 122, 204, 255</second>
<second>117, 113, 94, 255</second>
</item>
<item>
<first>gripper-color</first>
<second>120, 120, 120, 255</second>
</item>
<item>
<first>tab-color-active</first>
<second>255, 255, 255, 255</second>
</item>
<item>
<first>tab-color-inactive</first>
<second>255, 255, 255, 255</second>
</item>
</colors>
</item>
<item>
Expand Down
29 changes: 25 additions & 4 deletions resources/runtime/themes/Orange/StyleSheet.xss
Original file line number Diff line number Diff line change
Expand Up @@ -194,16 +194,37 @@
<first>caption-color-no-focus</first>
<second>200, 200, 200, 255</second>
</item>
</colors>
</item>
<item>
<typeName>traktor.ui.DockPane</typeName>
<colors>
<item>
<first>splitter-color</first>
<second>63, 63, 70, 255</second>
</item>
<item>
<first>tab-background-color</first>
<second>45, 45, 45, 255</second>
</item>
<item>
<first>gripper-color-no-focus</first>
<first>tab-selected-background-color</first>
<second>224, 91, 0, 255</second>
</item>
<item>
<first>splitter-color</first>
<second>63, 63, 70, 255</second>
<first>gripper-color</first>
<second>224, 91, 0, 255</second>
</item>
<item>
<first>tab-color-active</first>
<second>255, 255, 255, 255</second>
</item>
<item>
<first>tab-color-inactive</first>
<second>255, 255, 255, 255</second>
</item>
</colors>
</item>
</item>
<item>
<typeName>traktor.ui.DropDown</typeName>
<colors>
Expand Down
138 changes: 110 additions & 28 deletions resources/runtime/themes/Shared/Images/Editor/ToolSearch.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 267ae97

Please sign in to comment.