Skip to content

fix(theme): honor fontFamily, remove non-functional config keys#1

Closed
johnkferguson wants to merge 1 commit into
feat/customizationsfrom
fix/honor-config-keys
Closed

fix(theme): honor fontFamily, remove non-functional config keys#1
johnkferguson wants to merge 1 commit into
feat/customizationsfrom
fix/honor-config-keys

Conversation

@johnkferguson
Copy link
Copy Markdown
Owner

primaryColor and fontSize were declared in theme.conf and accepted by the flake but never read by any QML — setting them did nothing. Drop both.

fontFamily had the same problem. Wire config.fontFamily into Main.qml via two derived properties (activeFontRegular, activeFontBold) that fall back to the bundled FontLoaders when unset.

Set the default to "Google Sans Flex Freeze" — the actual family name embedded in assets/fonts/FlexRounded-*.ttf. The old default FlexRounded was a string Qt could never resolve.

Test plan

  • sddm-greeter-qt6 --test-mode --theme . — default renders identically (uses bundled font)
  • Set fontFamily=JetBrains Mono in theme.conf and rerun — text switches font
  • Build flake with .override { fontFamily = "JetBrains Mono"; } — built theme.conf has the override applied
  • Build flake with .override { primaryColor = "..."; } — now fails at evaluation (was silently ignored before)

- Drop primaryColor and fontSize from theme.conf, flake.nix, README.
  Both were declared but never read by any QML; setting them was a no-op.
- Wire config.fontFamily into Main.qml via two derived properties with
  fallback to the bundled FontLoaders.
- Set the default fontFamily to "Google Sans Flex Freeze" (the actual
  family name embedded in assets/fonts/FlexRounded-*.ttf).
@johnkferguson
Copy link
Copy Markdown
Owner Author

Closing — this was just for review. Merging directly into feat/customizations. Upstream PR: xCaptaiN09#11

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