Skip to content

feat: Comprehensive Theming - #341

Closed
devnullvoid wants to merge 1 commit into
Browsers-software:mainfrom
devnullvoid:feature/theming-customization
Closed

devnullvoid wants to merge 1 commit into
Browsers-software:mainfrom
devnullvoid:feature/theming-customization

Conversation

@devnullvoid

@devnullvoid devnullvoid commented Nov 23, 2025 •

Copy link
Copy Markdown
Contributor

This PR introduces comprehensive theming customization.

image

Custom Theme Settings:

image

@devnullvoid devnullvoid changed the title feat: Comprehensive Theming and Focus Fixes feat: Comprehensive Theming Nov 23, 2025
@devnullvoid
devnullvoid marked this pull request as ready for review November 23, 2025 03:08
@liias

liias commented Dec 14, 2025

Copy link
Copy Markdown
Contributor

Thank you - awesome job, Jon!

It will take me some time to get to this, but letting you know I will look it through one day.

@liias
liias force-pushed the feature/theming-customization branch 2 times, most recently from 7327763 to b322d4f Compare August 9, 2026 20:17
@liias
liias self-requested a review August 9, 2026 20:17
- Replace hardcoded font size and color with `MainWindowTheme::ENV_PROFILE_LABEL_FONT` and `ENV_PROFILE_LABEL_COLOR`.
- Aligns label appearance with the app's theming system for consistent UI.
- Simplifies future theme customizations and reduces duplicated style values.

feat: Add customizable hotkey background and text colors, including hover states, to appearance settings and apply them to hotkey labels.

Remove redundant `SET_FOCUSED_INDEX` command submission from `else` block.

feat: Add UI options for custom font sizes and families, and implement browser focus state.

feat: add focus‑specific env customization and hover color settings

- Introduce `FocusWidget::with_env_on_focus` to apply a custom `Env` when the widget gains focus, affecting event, lifecycle, update, layout, and paint handling.
- Extend `MainWindowTheme` with new keys `ENV_HOVER_TEXT_COLOR` and `ENV_HOVER_SECONDARY_TEXT_COLOR` and propagate them through theme initialization and environment setup.
- Add corresponding fields (`hover_text_color`, `hover_secondary_text_color`) to the theme struct and default values in `CustomTheme`.
- Update UI settings view to expose color inputs for hover text, secondary text, and hover secondary text, enabling user customization.
- Adjust theme parsing to read the new color values from `CustomTheme` and apply them to the main window theme.

feat: add customizable hover background color support

- Add `hover_background` to `CustomTheme` with default RGBA value
- Extend `MainWindowTheme` with `hover_background_color` and ENV key
- Parse and apply the custom hover color when building the theme
- Introduce a color input in the Appearance settings to let users edit the hover background
- Update main window widget rendering to use the new env color for hover/selected states
- Minor cleanup of imports and minor UI adjustments related to the new feature

feat: add custom appearance settings with theme customization

- Introduce an Appearance tab in the settings window allowing users to select theme mode and customize colors.
- Replace the old ConfiguredTheme with a new ThemeMode enum that includes a Custom option.
- Add a CustomTheme struct to store hex color values and provide default theme colors.
- Extend UIVisualSettings and UIState to hold theme_mode and custom_theme data.
- Update theme initialization to apply custom colors when ThemeMode::Custom is selected, including a color parser.
- Modify settings UI to include radio buttons for theme selection and text boxes for custom color inputs, with automatic save handling.
@liias
liias force-pushed the feature/theming-customization branch from b322d4f to 07f1b60 Compare August 25, 2026 21:17
This was referenced Aug 25, 2026
@liias

liias commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Hey, so 10 months later this feature is in main.

It's implemented mostly like your PR, but with some changes and slightly less configurability (e.g can choose only a single font family for entire popup)

I was contemplating of just saying no to this feature, but it shouldn't be too much to maintain.

Thank you again and sorry that this took forever.

@liias liias closed this Aug 26, 2026
@liias

liias commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

OK, sorry, I decided to actually omit it. I'm planning a migration to https://slint.dev/ and it's going to completely change the UI code.

(For local usage reverting c1a6da1 gives the support)

This branch was previously deployed

1 inactive deployment
PROD_2028 — 07f1b603 Deployed Aug 25, 2026 by liias via build-macos #1593
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.

2 participants