From 72caf7525ec44c03429fd3058efacac8a29d7ae6 Mon Sep 17 00:00:00 2001 From: Ziad-I <68874104+Ziad-I@users.noreply.github.com> Date: Sun, 4 Aug 2024 13:58:53 +0300 Subject: [PATCH] fix highlighting for better visibility --- .../blenderbim/bim/data/webui/static/css/gantt.css | 11 ++++++----- .../blenderbim/bim/data/webui/static/css/index.css | 6 +++--- src/blenderbim/blenderbim/tool/web.py | 3 ++- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/blenderbim/blenderbim/bim/data/webui/static/css/gantt.css b/src/blenderbim/blenderbim/bim/data/webui/static/css/gantt.css index ccee5c60e5..7bbeff1c08 100644 --- a/src/blenderbim/blenderbim/bim/data/webui/static/css/gantt.css +++ b/src/blenderbim/blenderbim/bim/data/webui/static/css/gantt.css @@ -502,9 +502,10 @@ footer p { /* Highlight row */ -:root.blender .gitemhighlight td { - background-color: var(--blender-panel-background); - color: var(--blender-text); +:root.blender .gitemhighlight td, +:root.blender .gitemhighlight .gantt-inputtable { + background-color: var(--blender-active-highlight) !important; + color: var(--blender-active-text-highlight) !important; } /* Differentiate Group, Milestone and Ordinary task items (applied to row) */ @@ -553,8 +554,8 @@ footer p { :root.blender span.gformlabel:hover, :root.blender span.gselected { - background-color: var(--blender-panel-header); - color: var(--blender-text-highlight); + background-color: var(--blender-active-highlight); + color: var(--blender-active-text-highlight); border-color: var(--blender-tab-outline); } diff --git a/src/blenderbim/blenderbim/bim/data/webui/static/css/index.css b/src/blenderbim/blenderbim/bim/data/webui/static/css/index.css index 590f6937d2..87c653986a 100644 --- a/src/blenderbim/blenderbim/bim/data/webui/static/css/index.css +++ b/src/blenderbim/blenderbim/bim/data/webui/static/css/index.css @@ -278,13 +278,13 @@ footer p { :root.blender .tabulator-selected .tabulator-cell { - background-color: var(--blender-selected-object) !important; + background-color: var(--blender-active-highlight) !important; + color: var(--blender-active-text-highlight) !important; } :root.blender .tabulator-selected:hover .tabulator-cell { - background-color: var(--blender-active-object) !important; - filter: brightness(1) + filter: brightness(1.2) } .tabulator-menu-item { diff --git a/src/blenderbim/blenderbim/tool/web.py b/src/blenderbim/blenderbim/tool/web.py index db018d3263..a97f73c119 100644 --- a/src/blenderbim/blenderbim/tool/web.py +++ b/src/blenderbim/blenderbim/tool/web.py @@ -411,7 +411,8 @@ class Web(blenderbim.core.tool.Web): "info_warning": get_color(info, "info_warning"), "odd_row": get_color(outliner.space, "back"), "even_row": mix_colors(get_color(outliner.space, "back"), get_color(outliner, "row_alternate")), - "text_highlight": get_color(outliner, "active"), + "active_highlight": get_color(outliner, "active"), + "active_text_highlight": get_color(outliner, "active_object"), } cls.send_webui_data(theme, "theme", "theme_data", use_web_data=False)