v1.8.63: blue scrollbars matching CTk theme across all tabs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
chrome-storm-c442
2026-02-25 07:18:04 -05:00
parent 3a5d1b27fc
commit 327647f77e
6 changed files with 49 additions and 7 deletions

View File

@@ -10,6 +10,7 @@ import customtkinter as ctk
from core.grafana_client import GrafanaClient
from core.i18n import t
from core.icons import icon_text
from gui.tabs.query_tab import apply_dark_scrollbar_style
class GrafanaTab(ctk.CTkFrame):
@@ -23,6 +24,7 @@ class GrafanaTab(ctk.CTkFrame):
self._build_ui()
def _build_ui(self):
apply_dark_scrollbar_style()
# ── Header + Refresh ──
header_frame = ctk.CTkFrame(self, fg_color="transparent")
header_frame.pack(fill="x", padx=15, pady=(15, 5))
@@ -54,7 +56,7 @@ class GrafanaTab(ctk.CTkFrame):
self._dash_tree.column("folder", width=150, minwidth=80)
self._dash_tree.pack(side="left", fill="both", expand=True)
dash_scroll = ttk.Scrollbar(dash_frame, orient="vertical", command=self._dash_tree.yview)
dash_scroll = ttk.Scrollbar(dash_frame, orient="vertical", command=self._dash_tree.yview, style="Dark.Vertical.TScrollbar")
dash_scroll.pack(side="right", fill="y")
self._dash_tree.configure(yscrollcommand=dash_scroll.set)
@@ -79,7 +81,7 @@ class GrafanaTab(ctk.CTkFrame):
self._alerts_tree.column("severity", width=100, minwidth=60)
self._alerts_tree.pack(side="left", fill="both", expand=True)
alerts_scroll = ttk.Scrollbar(alerts_frame, orient="vertical", command=self._alerts_tree.yview)
alerts_scroll = ttk.Scrollbar(alerts_frame, orient="vertical", command=self._alerts_tree.yview, style="Dark.Vertical.TScrollbar")
alerts_scroll.pack(side="right", fill="y")
self._alerts_tree.configure(yscrollcommand=alerts_scroll.set)