Skip to content

Commit b54c364

Browse files
author
Franz646
committed
style: improve text contrast throughout panel — v2.3.4
- Stat card labels: font-size 11->12px, font-weight 500, full opacity, uses primary-text-color - Stat card values: font-weight 600->700 - Default ignore list header: font-size 12->13px, font-weight 500, primary-text-color - Ignore hint text: font-size 11->12px, primary-text-color at 70% opacity - Ignore arrow: primary-text-color at 60% opacity
1 parent 2a6771b commit b54c364

3 files changed

Lines changed: 10 additions & 9 deletions

File tree

custom_components/orphan_cleaner/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@
4747
PANEL_ICON = "mdi:broom"
4848

4949
# Versione corrente (usata per cache-busting)
50-
VERSION = "2.3.3"
50+
VERSION = "2.3.4"

custom_components/orphan_cleaner/frontend/panel.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@
7272
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
7373
.stat { background: var(--surface2); border-radius: var(--radius-sm); padding: 7px 14px;
7474
display: flex; align-items: center; gap: 10px; }
75-
.s-label { font-size: 11px; color: var(--primary-text-color, var(--text1)); text-transform: uppercase;
76-
letter-spacing: 0.03em; flex: 1; opacity: 0.85; }
77-
.s-val { font-size: 22px; font-weight: 600; }
75+
.s-label { font-size: 12px; font-weight: 500; color: var(--primary-text-color, #ffffff);
76+
text-transform: uppercase; letter-spacing: 0.03em; flex: 1; }
77+
.s-val { font-size: 22px; font-weight: 700; }
7878
.s-danger .s-val { color: var(--red); }
7979
.s-ok .s-val { color: var(--green); }
8080
.s-warn .s-val { color: #BA7517; }
@@ -195,15 +195,16 @@
195195
tr.ignored td { color:var(--text3); }
196196
.ignore-section { background:var(--surface2); border-radius:var(--radius-sm); margin-bottom:8px; overflow:hidden; }
197197
.ignore-header { display:flex; align-items:center; justify-content:space-between;
198-
padding:7px 14px; cursor:pointer; user-select:none; font-size:12px; color:var(--text2); }
198+
padding:7px 14px; cursor:pointer; user-select:none; font-size:13px; font-weight:500;
199+
color:var(--primary-text-color, #ffffff); }
199200
.ignore-header:hover { background:rgba(255,255,255,.03); }
200201
.ignore-badge { background:rgba(46,204,113,.15); color:#2ecc71; border-radius:99px;
201202
font-size:10px; padding:1px 7px; margin-left:6px; }
202-
.ignore-arrow { font-size:10px; color:var(--text3); transition:transform .2s; margin-left:auto; }
203+
.ignore-arrow { font-size:12px; color:var(--primary-text-color, #ffffff); opacity:0.6; transition:transform .2s; margin-left:auto; }
203204
.ignore-arrow.open { transform:rotate(180deg); }
204205
.ignore-body { border-top:.5px solid var(--border2); padding:8px 14px 10px; display:none; }
205206
.ignore-body.open { display:block; }
206-
.ignore-hint { font-size:11px; color:var(--text3); margin-bottom:8px; }
207+
.ignore-hint { font-size:12px; color:var(--primary-text-color, #ffffff); opacity:0.7; margin-bottom:8px; }
207208
.ignore-input-row { display:flex; align-items:center; gap:6px; margin-bottom:7px; }
208209
.ignore-input-row input[type=text] { width:150px; font-size:12px; }
209210
.ignore-saved-tags { display:flex; flex-wrap:wrap; gap:5px; min-height:18px; align-items:center; }
@@ -236,7 +237,7 @@
236237
<svg viewBox="0 0 24 24"><path d="M19.36 2.72 20.78 4.14l-1.4 1.41 1.41 1.41-4.24 4.24-1.41-1.41-6.89 6.9a4 4 0 0 1-1.2 4.71l-2.83 2.12-1.41-1.41 2.12-2.83a2 2 0 0 0 .27-2.1l-.27-.42L3 15.36l1.41-1.41 1.42 1.42 5.65-5.66-1.41-1.41 4.24-4.24 1.41 1.41z"/></svg>
237238
</div>
238239
<div>
239-
<div class="topbar-title">Orphan Entity Cleaner <span style="font-size:11px;font-weight:400;color:var(--text2);margin-left:6px">v2.3.3</span></div>
240+
<div class="topbar-title">Orphan Entity Cleaner <span style="font-size:11px;font-weight:400;color:var(--text2);margin-left:6px">v2.3.4</span></div>
240241
<div class="topbar-sub">Home Assistant Integration — orphan entity cleanup</div>
241242
</div>
242243
<div class="topbar-spacer"></div>

custom_components/orphan_cleaner/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
"iot_class": "local_push",
1414
"issue_tracker": "https://github.com/Franz646/orphan-cleaner/issues",
1515
"requirements": [],
16-
"version": "2.3.3"
16+
"version": "2.3.4"
1717
}

0 commit comments

Comments
 (0)