Skip to content

Fix themed primary buttons and polish the manager layout - #6

Merged
Gaiser147 merged 2 commits into
mainfrom
manager-ui-polish
Oct 27, 2026
Merged

Gaiser147 merged 2 commits into
mainfrom
manager-ui-polish

Conversation

@Gaiser147

@Gaiser147 Gaiser147 commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

What changed

Bug fix: primary actions were invisible with game artwork. stylesheet() passed the button texture to Qt as a file:///… URL, which Qt style sheets don't resolve. With the game theme loaded, Install/Update mod, Save settings, Import replacement MP4… and Use preview image rendered as bare text, and an enabled Save settings looked less like a button than a disabled one. The style sheet now uses a plain path, and a new UI test checks the button artwork pixel (it fails without the fix).

Layout for short windows

  • The footer hint and the operation status are merged into one bottom bar (status on the left, persistent actions on the right). Unsaved changes shows only while edits are pending. Logs… and the version link moved to the masthead links.
  • Below 800 px window height the logo shrinks from 188×108 to 112×64. At 1024×768 all 5 FreeCam settings are visible (previously 4); at the 900×640 minimum about 2½ rows (previously 1).

Clearer keys and videos

  • Key fields show keyboard names (Page Up, Home, 0). The UE4SS code is still what gets saved. An unknown configured code is now shown as-is instead of silently displaying F1.
  • The MovieSwap picker groups clips by folder, marks clips that are already replaced with the mint check icon, and shows each clip's original format parsed from VIDEOS.txt (e.g. H.264 · 1320 × 600 · 24 fps · 1.08 s · with audio).

Keybinding conflicts

  • A key field gets a pink border and a line such as "Also used by LightTools: Toggle floodlight." when the same key is bound elsewhere in the mod or by another installed, enabled mod. Disabled and uninstalled mods are ignored, and saving stays allowed.
  • Reserved keys (FreeCam's WASD, LightTools' End, …) are not declared in the catalogue on purpose: managers up to 0.4.0 reject unknown mod fields, so a new catalogue field would break them.

Error messages

  • The generic "Check the folder or connection and try again." suffix is gone. Network, HTTP, locked-file and missing-file errors now get their own next step; other messages pass through unchanged.
  • Errors show an alert icon and stay visible until the user starts another action. Background work (game detection, artwork extraction, saved sources) no longer overwrites them.

Smaller polish

  • Reset icons are bright only when a field differs from its default.
  • Disabled key fields are grey instead of mint.
  • Spin box text is inset like the other fields.
  • The three header actions share one treatment, and initial focus lands on the mod library.
  • The Keybindings plaque is drawn in three slices so the ornaments keep their proportions and the text sits inside the frame.
  • Catalogue controls copy said "Keys below can be changed." although it sits below the keys; it now says "The keys above can be changed."
  • DESIGN.md is updated to match.

A separate commit adds .gitignore entries for agent files.

Why

These changes come from a design critique of 0.4.0 (score 24/40). This PR covers all five priority issues it found: invisible primary buttons, cramped short windows, jargon in the key and video pickers, missing keybinding conflict warnings, and the generic error suffix.

Notes for reviewers

  • Video actions now read the clip path from video_choice.currentData() instead of the visible text; test_community_ui was updated accordingly.
  • key_label/default_label live in setting_help.py, so help popups and tooltips use the same names.
  • Verified with the full suite (python -m unittest discover -s tests: 188 OK, 3 skipped). Offscreen renders were checked at 1280×860, 1024×768 and 900×640, with and without game artwork, against a local installation (read-only). Not yet checked in a packaged build or on Linux.

Qt style sheets do not resolve file:/// URLs, so with game artwork loaded
every primary action (Install/Update mod, Save settings, Import MP4, Use
preview image) rendered as bare text. Use a plain path and cover it with a
pixel test.

- Merge the footer hint and operation status into one bottom bar; show
  "Unsaved changes" only while edits are pending; move Logs and version
  into the masthead links.
- Shrink the logo below 800 px window height so short windows keep room
  for settings (5 rows at 1024x768, previously 4).
- Show keyboard names for keys (Page Up, 0) while saving UE4SS codes;
  keep unknown configured codes instead of falling back to F1.
- Group the video picker by folder, mark replaced clips and state each
  clip's original format from VIDEOS.txt.
- Recess reset icons unless a field differs from its default, grey out
  disabled key fields, inset spin box text, unify header actions and
  draw the keybinding plaque in three slices.
- Correct catalogue controls copy that pointed below the keys.
@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 824260da-a345-4e0d-a78a-f9c28fa48b97
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Gaiser147
Gaiser147 merged commit d42d44b into main Oct 27, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant