aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-19 21:13:51 +0200
committerDanilo M. <danix@danix.xyz>2026-10-19 21:13:51 +0200
commit57df6adb767e1691599f894e1e3925870b1b3b3f (patch)
tree98f127218440692ffacd40e8727b363f45845723 /tests
parent81139106f75bc06f45e9e579f9c6400d0eeb8940 (diff)
downloadsb-builder-57df6adb767e1691599f894e1e3925870b1b3b3f.tar.gz
sb-builder-57df6adb767e1691599f894e1e3925870b1b3b3f.zip
Ribbon for the screens; centered, distinct tab bar
The Open menu becomes a toolbar ribbon (icon over label: Dashboard, Packages, Jobs) using the desktop icon theme with Qt fallbacks. Tabs are centered with a bordered, rounded shape, the selected one filled with the highlight color and joined to a highlight line over the pane, so the bar reads as its own control. Colors come from the palette. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_gui.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_gui.py b/tests/test_gui.py
index bf9177a..b99aebf 100644
--- a/tests/test_gui.py
+++ b/tests/test_gui.py
@@ -383,6 +383,16 @@ class SmokeTest(unittest.TestCase):
w.dashboard.jobs.clicked.emit()
self.assertIs(w.tabs.currentWidget(), w.jobs_tab)
+ def test_ribbon_opens_tabs(self):
+ w, _ = self.window()
+ w.poll_jobs()
+ self.assertEqual([a.text() for a in w.ribbon.actions()], ["Dashboard", "Packages", "Jobs"])
+ self.assertEqual([m.text() for m in w.menuBar().actions()], ["&File"])
+ w.ribbon.actions()[1].trigger()
+ self.assertIs(w.tabs.currentWidget(), w.packages_tab)
+ w.ribbon.actions()[0].trigger()
+ self.assertIs(w.tabs.currentWidget(), w.dashboard)
+
def test_tab_shortcuts_wrap(self):
w, _ = self.window()
w.poll_jobs()