Skip to content

Commit

Permalink
Update some theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Nats-ji committed Feb 8, 2021
1 parent dfee3f4 commit 2792183
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
13 changes: 9 additions & 4 deletions CPStyling/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -145,19 +145,24 @@ function CPStyle.setThemeBegin()
-- CPStyle.colorBegin("PlotLinesHovered" , CPStyle.theme.PlotLinesHovered)
-- CPStyle.colorBegin("PlotHistogram" , CPStyle.theme.PlotHistogram)
-- CPStyle.colorBegin("PlotHistogramHovered" , CPStyle.theme.PlotHistogramHovered)
-- CPStyle.colorBegin("TableHeaderBg" , CPStyle.theme.TableHeaderBg)
-- CPStyle.colorBegin("TableBorderStrong" , CPStyle.theme.TableBorderStrong)
-- CPStyle.colorBegin("TableBorderLight" , CPStyle.theme.TableBorderLight)
-- CPStyle.colorBegin("TableRowBg" , CPStyle.theme.TableRowBg)
-- CPStyle.colorBegin("TableRowBgAlt" , CPStyle.theme.TableRowBgAlt)
CPStyle.colorBegin("TextSelectedBg" , CPStyle.theme.TextSelectedBg)
-- CPStyle.colorBegin("DragDropTarget" , CPStyle.theme.DragDropTarget)
-- CPStyle.colorBegin("NavHighlight" , CPStyle.theme.NavHighlight)
-- CPStyle.colorBegin("NavWindowingHighlight" , CPStyle.theme.NavWindowingHighlight)
-- CPStyle.colorBegin("NavWindowingDimBg" , CPStyle.theme.NavWindowingDimBg)
CPStyle.colorBegin("NavHighlight" , CPStyle.theme.NavHighlight)
CPStyle.colorBegin("NavWindowingHighlight" , CPStyle.theme.NavWindowingHighlight)
CPStyle.colorBegin("NavWindowingDimBg" , CPStyle.theme.NavWindowingDimBg)
CPStyle.colorBegin("ModalWindowDimBg" , CPStyle.theme.ModalWindowDimBg)
CPStyle.styleBegin("WindowRounding" , 0)
CPStyle.styleBegin("ScrollbarSize" , 9)
end

function CPStyle.setThemeEnd()
CPStyle.styleEnd(2)
CPStyle.colorEnd(40)
CPStyle.colorEnd(43)
end

function CPStyle.setFrameThemeBegin()
Expand Down
5 changes: 5 additions & 0 deletions CPStyling/styles.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ return {
{ ImGuiStyle = ImGuiCol.PlotLinesHovered , ImGuiStyleShort = "PlotLinesHovered" },
{ ImGuiStyle = ImGuiCol.PlotHistogram , ImGuiStyleShort = "PlotHistogram" },
{ ImGuiStyle = ImGuiCol.PlotHistogramHovered , ImGuiStyleShort = "PlotHistogramHovered" },
{ ImGuiStyle = ImGuiCol.TableHeaderBg , ImGuiStyleShort = "TableHeaderBg" },
{ ImGuiStyle = ImGuiCol.TableBorderStrong , ImGuiStyleShort = "TableBorderStrong" },
{ ImGuiStyle = ImGuiCol.TableBorderLight , ImGuiStyleShort = "TableBorderLight" },
{ ImGuiStyle = ImGuiCol.TableRowBg , ImGuiStyleShort = "TableRowBg" },
{ ImGuiStyle = ImGuiCol.TableRowBgAlt , ImGuiStyleShort = "TableRowBgAlt" },
{ ImGuiStyle = ImGuiCol.TextSelectedBg , ImGuiStyleShort = "TextSelectedBg" },
{ ImGuiStyle = ImGuiCol.DragDropTarget , ImGuiStyleShort = "DragDropTarget" },
{ ImGuiStyle = ImGuiCol.NavHighlight , ImGuiStyleShort = "NavHighlight" },
Expand Down
11 changes: 8 additions & 3 deletions CPStyling/theme.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,16 @@ return {
-- PlotLinesHovered = { 0.00, 0.00, 0.00, 0.00 },
-- PlotHistogram = { 0.00, 0.00, 0.00, 0.00 },
-- PlotHistogramHovered = { 0.00, 0.00, 0.00, 0.00 },
-- TableHeaderBg = { 0.00, 0.00, 0.00, 0.00 },
-- TableBorderStrong = { 0.00, 0.00, 0.00, 0.00 },
-- TableBorderLight = { 0.00, 0.00, 0.00, 0.00 },
-- TableRowBg = { 0.00, 0.00, 0.00, 0.00 },
-- TableRowBgAlt = { 0.00, 0.00, 0.00, 0.00 },
TextSelectedBg = { 0.06, 0.06, 0.12, 1.00 },
-- DragDropTarget = { 0.00, 0.00, 0.00, 0.00 },
-- NavHighlight = { 0.00, 0.00, 0.00, 0.00 },
-- NavWindowingHighlight = { 0.00, 0.00, 0.00, 0.00 },
-- NavWindowingDimBg = { 0.00, 0.00, 0.00, 0.00 },
NavHighlight = { 0.34, 0.95, 0.98, 1.00 },
NavWindowingHighlight = { 0.34, 0.95, 0.98, 1.00 },
NavWindowingDimBg = { 0.00, 0.00, 0.00, 0.40 },
ModalWindowDimBg = { 0.00, 0.00, 0.00, 0.40 },
CPButton = { 0.06, 0.06, 0.12, 1.00 },
CPButtonHovered = { 0.43, 0.13, 0.13, 1.00 },
Expand Down

0 comments on commit 2792183

Please sign in to comment.