Skip to content

Commit

Permalink
Add Theme Editor and default themes
Browse files Browse the repository at this point in the history
  • Loading branch information
EddieEldridge committed Nov 14, 2023
1 parent 9894ec7 commit 13d97d2
Show file tree
Hide file tree
Showing 10 changed files with 350 additions and 0 deletions.
6 changes: 6 additions & 0 deletions M2TWEOP Code/M2TWEOP GUI/modSettingsUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "managerG.h"
#include "themeManager.h"
#include "../M2TWEOP Common/m2tweopConstData.h"
#include <cstdlib>

namespace modSettingsUI
{
Expand Down Expand Up @@ -234,6 +235,11 @@ namespace modSettingsUI

// Display the combo box and tooltip
if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled)) { ImGui::SetTooltip("Allows you to select a custom EOP theme for the launcher"); }

if (ImGui::Button("Open Theme Editor", helpers::getScreen().centerXButton))
{
system(".\\eopData\\themes\\ImTheme\\ImThemes-0.2.6-amd64.exe");
}
}

void drawRulesSettings()
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
86 changes: 86 additions & 0 deletions M2TWEOP DataFiles/eopData/themes/default.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# Classic style from ImThemes
alpha = 1.0
disabledAlpha = 0.6000000238418579
windowPadding = [20.0, 20.0]
windowRounding = 20.0
windowBorderSize = 1.0
windowMinSize = [30.0, 30.0]
windowTitleAlign = [0.0, 0.5]
windowMenuButtonPosition = "Left"
childRounding = 3.0
childBorderSize = 5.0
popupRounding = 3.0
popupBorderSize = 1.0
framePadding = [4.0, 3.0]
frameRounding = 3.0
frameBorderSize = 0.0
itemSpacing = [8.0, 4.0]
itemInnerSpacing = [4.0, 4.0]
cellPadding = [4.0, 2.0]
indentSpacing = 21.0
columnsMinSpacing = 6.0
scrollbarSize = 14.0
scrollbarRounding = 3.0
grabMinSize = 10.0
grabRounding = 3.0
tabRounding = 3.0
tabBorderSize = 0.0
tabMinWidthForCloseButton = 0.0
colorButtonPosition = "Right"
buttonTextAlign = [0.5, 0.5]
selectableTextAlign = [0.0, 0.0]

[colors]
Text = "rgba(229, 229, 229, 1.0)"
TextDisabled = "rgba(153, 153, 153, 1.0)"
WindowBg = "rgba(0, 0, 0, 0.8500000238418579)"
ChildBg = "rgba(0, 0, 0, 0.0)"
PopupBg = "rgba(28, 28, 35, 0.9200000166893005)"
Border = "rgba(127, 127, 127, 0.5)"
BorderShadow = "rgba(0, 0, 0, 0.0)"
FrameBg = "rgba(109, 109, 109, 0.3899999856948853)"
FrameBgHovered = "rgba(119, 119, 175, 0.4000000059604645)"
FrameBgActive = "rgba(107, 104, 163, 0.6899999976158142)"
TitleBg = "rgba(68, 68, 137, 0.8299999833106995)"
TitleBgActive = "rgba(81, 81, 160, 0.8700000047683716)"
TitleBgCollapsed = "rgba(102, 102, 204, 0.2000000029802322)"
MenuBarBg = "rgba(102, 102, 140, 0.800000011920929)"
ScrollbarBg = "rgba(51, 63, 76, 0.6000000238418579)"
ScrollbarGrab = "rgba(102, 102, 204, 0.300000011920929)"
ScrollbarGrabHovered = "rgba(102, 102, 204, 0.4000000059604645)"
ScrollbarGrabActive = "rgba(104, 99, 204, 0.6000000238418579)"
CheckMark = "rgba(66, 150, 250, 1.0)"
SliderGrab = "rgba(61, 133, 224, 1.0)"
SliderGrabActive = "rgba(66, 150, 250, 1.0)"
Button = "rgba(89, 102, 155, 0.6200000047683716)"
ButtonHovered = "rgba(102, 122, 181, 0.7900000214576721)"
ButtonActive = "rgba(117, 137, 204, 1.0)"
Header = "rgba(102, 102, 229, 0.449999988079071)"
HeaderHovered = "rgba(114, 114, 229, 0.800000011920929)"
HeaderActive = "rgba(135, 135, 221, 0.800000011920929)"
Separator = "rgba(127, 127, 127, 0.6000000238418579)"
SeparatorHovered = "rgba(153, 153, 178, 1.0)"
SeparatorActive = "rgba(178, 178, 229, 1.0)"
ResizeGrip = "rgba(255, 255, 255, 0.1000000014901161)"
ResizeGripHovered = "rgba(198, 209, 255, 0.6000000238418579)"
ResizeGripActive = "rgba(198, 209, 255, 0.8999999761581421)"
Tab = "rgba(85, 85, 174, 0.7860000133514404)"
TabHovered = "rgba(114, 114, 229, 0.800000011920929)"
TabActive = "rgba(103, 103, 185, 0.8420000076293945)"
TabUnfocused = "rgba(72, 72, 145, 0.8212000131607056)"
TabUnfocusedActive = "rgba(89, 89, 166, 0.8371999859809875)"
PlotLines = "rgba(255, 255, 255, 1.0)"
PlotLinesHovered = "rgba(229, 178, 0, 1.0)"
PlotHistogram = "rgba(229, 178, 0, 1.0)"
PlotHistogramHovered = "rgba(255, 153, 0, 1.0)"
TableHeaderBg = "rgba(68, 68, 96, 1.0)"
TableBorderStrong = "rgba(79, 79, 114, 1.0)"
TableBorderLight = "rgba(66, 66, 71, 1.0)"
TableRowBg = "rgba(0, 0, 0, 0.0)"
TableRowBgAlt = "rgba(255, 255, 255, 0.07000000029802322)"
TextSelectedBg = "rgba(0, 0, 255, 0.3499999940395355)"
DragDropTarget = "rgba(255, 255, 0, 0.8999999761581421)"
NavHighlight = "rgba(114, 114, 229, 0.800000011920929)"
NavWindowingHighlight = "rgba(255, 255, 255, 0.699999988079071)"
NavWindowingDimBg = "rgba(204, 204, 204, 0.2000000029802322)"
ModalWindowDimBg = "rgba(51, 51, 51, 0.3499999940395355)"
86 changes: 86 additions & 0 deletions M2TWEOP DataFiles/eopData/themes/mithridates.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# EOP style from ImThemes
alpha = 1.0
disabledAlpha = 0.6000000238418579
windowPadding = [8.0, 8.0]
windowRounding = 20.0
windowBorderSize = 1.0
windowMinSize = [30.0, 30.0]
windowTitleAlign = [0.0, 0.5]
windowMenuButtonPosition = "Left"
childRounding = 20.0
childBorderSize = 5.0
popupRounding = 20.0
popupBorderSize = 1.0
framePadding = [4.0, 3.0]
frameRounding = 20.0
frameBorderSize = 0.0
itemSpacing = [8.0, 4.0]
itemInnerSpacing = [4.0, 4.0]
cellPadding = [4.0, 2.0]
indentSpacing = 21.0
columnsMinSpacing = 6.0
scrollbarSize = 14.0
scrollbarRounding = 20.0
grabMinSize = 10.0
grabRounding = 20.0
tabRounding = 20.0
tabBorderSize = 0.0
tabMinWidthForCloseButton = 0.0
colorButtonPosition = "Right"
buttonTextAlign = [0.5, 0.5]
selectableTextAlign = [0.0, 0.0]

[colors]
Text = "rgba(255, 255, 255, 1.0)"
TextDisabled = "rgba(127, 127, 127, 1.0)"
WindowBg = "rgba(15, 15, 15, 0.9399999976158142)"
ChildBg = "rgba(0, 0, 0, 0.0)"
PopupBg = "rgba(20, 20, 20, 0.9399999976158142)"
Border = "rgba(109, 109, 127, 0.5)"
BorderShadow = "rgba(0, 0, 0, 0.0)"
FrameBg = "rgba(40, 73, 122, 0.5400000214576721)"
FrameBgHovered = "rgba(66, 150, 249, 0.4000000059604645)"
FrameBgActive = "rgba(66, 150, 249, 0.6700000166893005)"
TitleBg = "rgba(10, 10, 10, 1.0)"
TitleBgActive = "rgba(40, 73, 122, 1.0)"
TitleBgCollapsed = "rgba(0, 0, 0, 0.5099999904632568)"
MenuBarBg = "rgba(35, 35, 35, 1.0)"
ScrollbarBg = "rgba(5, 5, 5, 0.5299999713897705)"
ScrollbarGrab = "rgba(79, 79, 79, 1.0)"
ScrollbarGrabHovered = "rgba(104, 104, 104, 1.0)"
ScrollbarGrabActive = "rgba(130, 130, 130, 1.0)"
CheckMark = "rgba(66, 150, 250, 1.0)"
SliderGrab = "rgba(61, 133, 224, 1.0)"
SliderGrabActive = "rgba(66, 150, 250, 1.0)"
Button = "rgba(66, 150, 249, 0.4000000059604645)"
ButtonHovered = "rgba(66, 150, 249, 1.0)"
ButtonActive = "rgba(15, 135, 249, 1.0)"
Header = "rgba(66, 150, 249, 0.3100000023841858)"
HeaderHovered = "rgba(66, 150, 249, 0.800000011920929)"
HeaderActive = "rgba(66, 150, 249, 1.0)"
Separator = "rgba(109, 109, 127, 0.5)"
SeparatorHovered = "rgba(25, 102, 191, 0.7799999713897705)"
SeparatorActive = "rgba(25, 102, 191, 1.0)"
ResizeGrip = "rgba(66, 150, 249, 0.2000000029802322)"
ResizeGripHovered = "rgba(66, 150, 249, 0.6700000166893005)"
ResizeGripActive = "rgba(66, 150, 249, 0.949999988079071)"
Tab = "rgba(45, 89, 147, 0.8619999885559082)"
TabHovered = "rgba(66, 150, 249, 0.800000011920929)"
TabActive = "rgba(50, 104, 173, 1.0)"
TabUnfocused = "rgba(17, 26, 37, 0.9724000096321106)"
TabUnfocusedActive = "rgba(34, 66, 108, 1.0)"
PlotLines = "rgba(155, 155, 155, 1.0)"
PlotLinesHovered = "rgba(255, 109, 89, 1.0)"
PlotHistogram = "rgba(229, 178, 0, 1.0)"
PlotHistogramHovered = "rgba(255, 153, 0, 1.0)"
TableHeaderBg = "rgba(48, 48, 51, 1.0)"
TableBorderStrong = "rgba(79, 79, 89, 1.0)"
TableBorderLight = "rgba(58, 58, 63, 1.0)"
TableRowBg = "rgba(0, 0, 0, 0.0)"
TableRowBgAlt = "rgba(255, 255, 255, 0.05999999865889549)"
TextSelectedBg = "rgba(66, 150, 249, 0.3499999940395355)"
DragDropTarget = "rgba(255, 255, 0, 0.8999999761581421)"
NavHighlight = "rgba(66, 150, 249, 1.0)"
NavWindowingHighlight = "rgba(255, 255, 255, 0.699999988079071)"
NavWindowingDimBg = "rgba(204, 204, 204, 0.2000000029802322)"
ModalWindowDimBg = "rgba(204, 204, 204, 0.3499999940395355)"
86 changes: 86 additions & 0 deletions M2TWEOP DataFiles/eopData/themes/sulla.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# sulla style from ImThemes
alpha = 1.0
disabledAlpha = 0.800000011920929
windowPadding = [8.0, 8.0]
windowRounding = 0.0
windowBorderSize = 1.0
windowMinSize = [32.0, 32.0]
windowTitleAlign = [0.0, 0.5]
windowMenuButtonPosition = "Left"
childRounding = 0.0
childBorderSize = 1.0
popupRounding = 0.0
popupBorderSize = 1.0
framePadding = [4.0, 3.0]
frameRounding = 0.0
frameBorderSize = 0.0
itemSpacing = [8.0, 4.0]
itemInnerSpacing = [4.0, 4.0]
cellPadding = [4.0, 2.0]
indentSpacing = 21.0
columnsMinSpacing = 6.0
scrollbarSize = 14.0
scrollbarRounding = 9.0
grabMinSize = 10.0
grabRounding = 0.0
tabRounding = 4.0
tabBorderSize = 0.0
tabMinWidthForCloseButton = 0.0
colorButtonPosition = "Right"
buttonTextAlign = [0.5, 0.5]
selectableTextAlign = [0.0, 0.0]

[colors]
Text = "rgba(255, 255, 255, 1.0)"
TextDisabled = "rgba(127, 127, 127, 1.0)"
WindowBg = "rgba(84, 1, 1, 0.9399999976158142)"
ChildBg = "rgba(0, 0, 0, 0.0)"
PopupBg = "rgba(140, 96, 96, 0.9399999976158142)"
Border = "rgba(109, 109, 127, 0.5)"
BorderShadow = "rgba(0, 0, 0, 0.0)"
FrameBg = "rgba(72, 72, 72, 0.5400000214576721)"
FrameBgHovered = "rgba(255, 0, 0, 0.4000000059604645)"
FrameBgActive = "rgba(255, 0, 66, 1.0)"
TitleBg = "rgba(24, 1, 1, 1.0)"
TitleBgActive = "rgba(55, 55, 56, 1.0)"
TitleBgCollapsed = "rgba(0, 0, 0, 0.5099999904632568)"
MenuBarBg = "rgba(72, 72, 72, 1.0)"
ScrollbarBg = "rgba(5, 5, 5, 0.5299999713897705)"
ScrollbarGrab = "rgba(79, 79, 79, 1.0)"
ScrollbarGrabHovered = "rgba(104, 104, 104, 1.0)"
ScrollbarGrabActive = "rgba(130, 130, 130, 1.0)"
CheckMark = "rgba(77, 78, 79, 1.0)"
SliderGrab = "rgba(0, 112, 255, 1.0)"
SliderGrabActive = "rgba(129, 130, 131, 1.0)"
Button = "rgba(35, 38, 7, 0.4000000059604645)"
ButtonHovered = "rgba(17, 45, 77, 1.0)"
ButtonActive = "rgba(15, 135, 249, 1.0)"
Header = "rgba(66, 249, 110, 0.3100000023841858)"
HeaderHovered = "rgba(66, 150, 249, 0.800000011920929)"
HeaderActive = "rgba(67, 98, 135, 1.0)"
Separator = "rgba(109, 109, 127, 0.5)"
SeparatorHovered = "rgba(25, 102, 191, 0.7799999713897705)"
SeparatorActive = "rgba(25, 102, 191, 1.0)"
ResizeGrip = "rgba(66, 150, 249, 0.2000000029802322)"
ResizeGripHovered = "rgba(66, 150, 249, 0.6700000166893005)"
ResizeGripActive = "rgba(169, 169, 169, 0.949999988079071)"
Tab = "rgba(171, 141, 0, 0.8619999885559082)"
TabHovered = "rgba(66, 150, 249, 0.800000011920929)"
TabActive = "rgba(246, 255, 174, 0.2188841104507446)"
TabUnfocused = "rgba(17, 26, 37, 0.9724000096321106)"
TabUnfocusedActive = "rgba(34, 66, 108, 1.0)"
PlotLines = "rgba(155, 155, 155, 1.0)"
PlotLinesHovered = "rgba(255, 109, 89, 1.0)"
PlotHistogram = "rgba(229, 178, 0, 1.0)"
PlotHistogramHovered = "rgba(255, 153, 0, 1.0)"
TableHeaderBg = "rgba(29, 29, 80, 1.0)"
TableBorderStrong = "rgba(79, 79, 89, 1.0)"
TableBorderLight = "rgba(58, 58, 63, 1.0)"
TableRowBg = "rgba(0, 0, 0, 0.0)"
TableRowBgAlt = "rgba(255, 255, 255, 0.05999999865889549)"
TextSelectedBg = "rgba(13, 254, 158, 0.3499999940395355)"
DragDropTarget = "rgba(255, 255, 0, 0.8999999761581421)"
NavHighlight = "rgba(23, 61, 106, 1.0)"
NavWindowingHighlight = "rgba(255, 255, 255, 0.699999988079071)"
NavWindowingDimBg = "rgba(204, 204, 204, 0.2000000029802322)"
ModalWindowDimBg = "rgba(204, 204, 204, 0.3499999940395355)"
86 changes: 86 additions & 0 deletions M2TWEOP DataFiles/eopData/themes/youneouy.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# Light style from ImThemes
alpha = 1.0
disabledAlpha = 0.6000000238418579
windowPadding = [8.0, 8.0]
windowRounding = 0.0
windowBorderSize = 1.0
windowMinSize = [32.0, 32.0]
windowTitleAlign = [0.0, 0.5]
windowMenuButtonPosition = "Left"
childRounding = 0.0
childBorderSize = 1.0
popupRounding = 0.0
popupBorderSize = 1.0
framePadding = [4.0, 3.0]
frameRounding = 0.0
frameBorderSize = 0.0
itemSpacing = [8.0, 4.0]
itemInnerSpacing = [4.0, 4.0]
cellPadding = [4.0, 2.0]
indentSpacing = 21.0
columnsMinSpacing = 6.0
scrollbarSize = 14.0
scrollbarRounding = 9.0
grabMinSize = 10.0
grabRounding = 0.0
tabRounding = 4.0
tabBorderSize = 0.0
tabMinWidthForCloseButton = 0.0
colorButtonPosition = "Right"
buttonTextAlign = [0.5, 0.5]
selectableTextAlign = [0.0, 0.0]

[colors]
Text = "rgba(0, 0, 0, 1.0)"
TextDisabled = "rgba(153, 153, 153, 1.0)"
WindowBg = "rgba(239, 239, 239, 1.0)"
ChildBg = "rgba(0, 0, 0, 0.0)"
PopupBg = "rgba(255, 255, 255, 0.9800000190734863)"
Border = "rgba(0, 0, 0, 0.300000011920929)"
BorderShadow = "rgba(0, 0, 0, 0.0)"
FrameBg = "rgba(255, 255, 255, 1.0)"
FrameBgHovered = "rgba(66, 150, 249, 0.4000000059604645)"
FrameBgActive = "rgba(66, 150, 249, 0.6700000166893005)"
TitleBg = "rgba(244, 244, 244, 1.0)"
TitleBgActive = "rgba(209, 209, 209, 1.0)"
TitleBgCollapsed = "rgba(255, 255, 255, 0.5099999904632568)"
MenuBarBg = "rgba(219, 219, 219, 1.0)"
ScrollbarBg = "rgba(249, 249, 249, 0.5299999713897705)"
ScrollbarGrab = "rgba(175, 175, 175, 0.800000011920929)"
ScrollbarGrabHovered = "rgba(124, 124, 124, 0.800000011920929)"
ScrollbarGrabActive = "rgba(124, 124, 124, 1.0)"
CheckMark = "rgba(66, 150, 250, 1.0)"
SliderGrab = "rgba(61, 133, 224, 1.0)"
SliderGrabActive = "rgba(66, 150, 250, 1.0)"
Button = "rgba(66, 150, 249, 0.4000000059604645)"
ButtonHovered = "rgba(66, 150, 249, 1.0)"
ButtonActive = "rgba(15, 135, 249, 1.0)"
Header = "rgba(66, 150, 249, 0.3100000023841858)"
HeaderHovered = "rgba(66, 150, 249, 0.800000011920929)"
HeaderActive = "rgba(66, 150, 249, 1.0)"
Separator = "rgba(99, 99, 99, 0.6200000047683716)"
SeparatorHovered = "rgba(35, 112, 204, 0.7799999713897705)"
SeparatorActive = "rgba(35, 112, 204, 1.0)"
ResizeGrip = "rgba(89, 89, 89, 0.1700000017881393)"
ResizeGripHovered = "rgba(66, 150, 249, 0.6700000166893005)"
ResizeGripActive = "rgba(66, 150, 249, 0.949999988079071)"
Tab = "rgba(194, 203, 213, 0.9309999942779541)"
TabHovered = "rgba(66, 150, 249, 0.800000011920929)"
TabActive = "rgba(151, 185, 225, 1.0)"
TabUnfocused = "rgba(234, 236, 238, 0.9861999750137329)"
TabUnfocusedActive = "rgba(189, 209, 233, 1.0)"
PlotLines = "rgba(99, 99, 99, 1.0)"
PlotLinesHovered = "rgba(255, 109, 89, 1.0)"
PlotHistogram = "rgba(229, 178, 0, 1.0)"
PlotHistogramHovered = "rgba(255, 114, 0, 1.0)"
TableHeaderBg = "rgba(198, 221, 249, 1.0)"
TableBorderStrong = "rgba(145, 145, 163, 1.0)"
TableBorderLight = "rgba(173, 173, 188, 1.0)"
TableRowBg = "rgba(0, 0, 0, 0.0)"
TableRowBgAlt = "rgba(76, 76, 76, 0.09000000357627869)"
TextSelectedBg = "rgba(66, 150, 249, 0.3499999940395355)"
DragDropTarget = "rgba(66, 150, 249, 0.949999988079071)"
NavHighlight = "rgba(66, 150, 249, 0.800000011920929)"
NavWindowingHighlight = "rgba(178, 178, 178, 0.699999988079071)"
NavWindowingDimBg = "rgba(51, 51, 51, 0.2000000029802322)"
ModalWindowDimBg = "rgba(51, 51, 51, 0.3499999940395355)"

0 comments on commit 13d97d2

Please sign in to comment.