[Editor] Fix the border color of a tab panel in HCM (bug 1956110)

And fix the color of the signature itself when its a drawing or if it comes
from an image.
This commit is contained in:
Calixte Denizet 2025-03-26 14:56:20 +01:00
parent 74ab29544e
commit 5c3c003931

View File

@ -132,6 +132,8 @@
--tab-bg-active-color: var(--tab-bg); --tab-bg-active-color: var(--tab-bg);
--tab-bg-active-hover-color: var(--bg-hover); --tab-bg-active-hover-color: var(--bg-hover);
--tab-bg-hover: var(--bg-hover); --tab-bg-hover: var(--bg-hover);
--tab-panel-border: none;
--tab-panel-border-radius: 4px;
--tab-text-color: var(--primary-color); --tab-text-color: var(--primary-color);
--tab-text-active-color: var(--tab-top-line-active-color); --tab-text-active-color: var(--tab-top-line-active-color);
--tab-text-active-hover-color: var(--tab-text-hover-color); --tab-text-active-hover-color: var(--tab-text-hover-color);
@ -193,6 +195,8 @@
--tab-bg: var(--bg); --tab-bg: var(--bg);
--tab-bg-active-color: SelectedItem; --tab-bg-active-color: SelectedItem;
--tab-bg-active-hover-color: SelectedItem; --tab-bg-active-hover-color: SelectedItem;
--tab-panel-border: 1px solid ButtonText;
--tab-panel-border-radius: 8px;
--tab-text-color: ButtonText; --tab-text-color: ButtonText;
--tab-text-active-color: HighlightText; --tab-text-active-color: HighlightText;
--tab-text-active-hover-color: HighlightText; --tab-text-active-hover-color: HighlightText;
@ -308,7 +312,8 @@
width: 100%; width: 100%;
height: 220px; height: 220px;
background-color: var(--signature-bg); background-color: var(--signature-bg);
border-radius: 4px; border: var(--tab-panel-border);
border-radius: var(--tab-panel-border-radius);
> svg { > svg {
position: absolute; position: absolute;
@ -331,6 +336,7 @@
text-align: center; text-align: center;
color: var(--signature-color); color: var(--signature-color);
background-color: transparent; background-color: transparent;
border-radius: var(--tab-panel-border-radius);
font-family: font-family:
"Brush script", "Apple Chancery", "Segoe script", "Brush script", "Apple Chancery", "Segoe script",
@ -372,7 +378,7 @@
} }
> svg { > svg {
stroke: var(--primary-color); stroke: var(--signature-color);
fill: none; fill: none;
stroke-opacity: 1; stroke-opacity: 1;
stroke-linecap: round; stroke-linecap: round;
@ -448,7 +454,7 @@
> svg { > svg {
stroke: none; stroke: none;
stroke-width: 0; stroke-width: 0;
fill: var(--primary-color); fill: var(--signature-color);
fill-opacity: 1; fill-opacity: 1;
} }