diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-21 10:09:46 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-21 10:09:46 +0200 |
| commit | 1c1fb069f7f3bae5946c485ef48846c150ef1d54 (patch) | |
| tree | cc81b61b21a864247b232a84cf59f6314a8837ab /sb_builder/ui.py | |
| parent | 28b7d44e2d29d14ce2b9b30adecdf1bff3a71bf6 (diff) | |
| download | sb-builder-1c1fb069f7f3bae5946c485ef48846c150ef1d54.tar.gz sb-builder-1c1fb069f7f3bae5946c485ef48846c150ef1d54.zip | |
Detail panes: navigation as a button on top, reflowed descriptions
Open in Hints and Open in Packages were plain links at the end of the
pane, below the fold on a long one. ui.nav_button() makes them buttons,
first in the pane; the UI guideline now says navigation buttons. The
Repository description drops slack-desc's 70-column breaks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'sb_builder/ui.py')
| -rw-r--r-- | sb_builder/ui.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sb_builder/ui.py b/sb_builder/ui.py index 3f02515..2321566 100644 --- a/sb_builder/ui.py +++ b/sb_builder/ui.py @@ -81,6 +81,13 @@ def group_label(text): return label +def nav_button(text, slot): + """A detail pane's jump to another tab: navigation, so it lives in the view.""" + b = QPushButton(QIcon.fromTheme("go-next", QApplication.style().standardIcon(SP.SP_ArrowForward)), text) + b.clicked.connect(lambda _checked=False: slot()) + return b + + def search_field(placeholder): q = QLineEdit(placeholderText=placeholder, clearButtonEnabled=True) icon = QIcon.fromTheme("edit-find", QApplication.style().standardIcon(SP.SP_FileDialogContentsView)) |
