From 2792183d276731cfe061e4d41cbc1f27058addec Mon Sep 17 00:00:00 2001 From: Nats-ji Date: Mon, 8 Feb 2021 08:23:12 +0800 Subject: [PATCH] Update some theme --- CPStyling/init.lua | 13 +++++++++---- CPStyling/styles.lua | 5 +++++ CPStyling/theme.lua | 11 ++++++++--- 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/CPStyling/init.lua b/CPStyling/init.lua index 9c7250d..49a19f0 100644 --- a/CPStyling/init.lua +++ b/CPStyling/init.lua @@ -145,11 +145,16 @@ 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) @@ -157,7 +162,7 @@ end function CPStyle.setThemeEnd() CPStyle.styleEnd(2) - CPStyle.colorEnd(40) + CPStyle.colorEnd(43) end function CPStyle.setFrameThemeBegin() diff --git a/CPStyling/styles.lua b/CPStyling/styles.lua index e5b2ce3..f3db9da 100644 --- a/CPStyling/styles.lua +++ b/CPStyling/styles.lua @@ -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" }, diff --git a/CPStyling/theme.lua b/CPStyling/theme.lua index 0d2635c..35483f9 100644 --- a/CPStyling/theme.lua +++ b/CPStyling/theme.lua @@ -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 },