fix: Layout des KI-Workflows-Tabs aufräumen#8
Merged
Conversation
Der KI-Workflows-Tab (und konsistent alle Settings-Tabs) wirkte unfertig:
gequetschte, kontrastarme Hilfetexte, ein dominierendes Prompt-Feld und
nicht bündig ausgerichtete Felder.
- Hilfetexte über die volle Breite spannen statt in die schmale
Feld-Spalte zu quetschen (addRow("", ...) -> addRow(...))
- create_help_label: Theme-Farbe APP_TEXT_DIM statt gray, 11px,
padding-bottom für klare Gruppentrennung
- FieldGrowthPolicy.AllNonFixedFieldsGrow für bündige Eingabefelder
- Dampf-Prompt-Feld auf 72-120px und Begriffsliste auf max 120px
begrenzt, damit sie die Seite nicht dominieren
- Tabs in scrollbare QScrollArea gewrappt, damit der inhaltsreiche
LLM-Tab nicht überläuft; Initialgröße 550x480 -> 580x560
setWidgetResizable(True) staucht das innere Formular auf jede Höhe zwischen minimumSizeHint und sizeHint. Da die Hilfe-Labels Wortumbruch nutzen, ist ihre Minimalhöhe weit kleiner als die tatsächlich benötigte Höhe -- dadurch überlappten die Zeilen, sobald das Fenster knapp zu klein für die volle Höhe war (Standardgröße), ohne dass eine Scrollbar erschien. FormScrollArea erzwingt im resizeEvent als Mindesthöhe des Inhalts stets die für die aktuelle Breite nötige Höhe (heightForWidth). Dadurch wird bei Platzmangel sauber gescrollt statt gequetscht -- bei jeder Fenstergröße.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Der KI-Workflows-Tab im Einstellungsdialog wirkte unfertig statt fertig gestaltet:
Ursache: Hilfetexte wurden via
addRow("", create_help_label(...))in die schmale Feld-Spalte desQFormLayoutgequetscht,create_help_labelnutzte das kontrastarmegrayauf dem dunklen Breeze-Theme, und der inhaltsreiche Tab hatte keine Scroll-Behandlung.Änderungen (
app/blitztext_linux.py)addRow("", create_help_label(...))→addRow(create_help_label(...))(17 Stellen, konsistent über alle Tabs). Sauberer Umbruch, linksbündig.create_help_label:theme.APP_TEXT_DIMstattgray, 11px,padding-bottomfür klare Gruppentrennung.FieldGrowthPolicy.AllNonFixedFieldsGrowfür alle drei Tabs.edit_dampf_promptauf 72–120px, Begriffsliste auf max 120px begrenzt._scrollable()wrappt jeden Tab in eine rahmenloseQScrollArea; Initialgröße 550×480 → 580×560.Logik und Persistenz sind unberührt — rein UI-Layout.
Test Plan
python -m py_compile app/blitztext_linux.pyQScrollArea, Höhenlimits gesetzt)🤖 Generated with Claude Code