Repository navigation
Conversation
[Medium impact] The changes affect Folio’s main window and preview, but stay within its interface. Fix the font-family reset before merging. Findings
SummaryFolio now follows Omarchy text-size changes live and scales icons and layout sizes with the text.
|
| connect(&m_fontDebounce, &QTimer::timeout, this, [this] { | ||
| readSystemFont(std::exchange(m_reloadFontconfig, false)); |
There was a problem hiding this comment.
After a live change to fonts.conf, readSystemFont(true) finds the new family through a separate fontconfig configuration, then destroys that configuration. The new size-only paths call readSystemFont(false), which resolves the family through the unchanged FcConfigGetCurrent(). For an alias such as monospace, changing text size or switching themes can therefore restore the old font. Keep the last resolved family for size-only updates instead of resolving it against the startup configuration.
omarchy display text sizeupdates~/.config/omarchy/shell.toml([font] base-size, anchored at 12px = 1.0) and GNOME/GTK'stext-scaling-factor, leavingqtengine's fixed font size unchanged at 11pt. BecauseThemeonly readQFontDatabase::FixedFontand watchedfontconfig/fonts.conf, Folio stayed at1.0xwhen changing display text size in Omarchy.Changes
src/theme.h,src/theme.cpp):[font] base-sizefrom~/.config/omarchy/shell.toml(falling back to the active theme'stheme/shell.toml), anchored at12px = 1.0and clamped to Folio's[0.75, 1.5]layout range.~/.config/omarchy(or nearest existing ancestor) andshell.toml, re-arming after atomic renames (mktemp+mv) and re-reading size without triggering a full fontconfig reload.org.freedesktop.portal.Settings(Readasync +SettingChangedlive) fororg.gnome.desktop.interface/text-scaling-factoras fallback whenshell.tomldoes not pinbase-size(skipped forfolio chooserand never double-scaled).theme.textScale:Glyph,IconButton, andSpinnerwiththeme.textScale(keeping pre-scaled grid tile art and fixed hero previews opted out withscaled: falseto avoid double-scaling).tileZoom+cellHeight), list/column row heights and thumbnails (FileRow,FolderList,FolderColumns), top bar height (Main,PathBar), sidebar width/rows/buttons (Main,Sidebar), and menu item height (FolioMenuItem), keeping1.0xpixel-identical.tests/folio_tests.cpp):themeFollowsOmarchyTextSize()coveringshell.tomlparsing, theme fallback, live creation and atomic rename, portal fallback without double-scaling, andGlyphscaling.