Ending Cross-Toolkit Visual Clashes: Terminal CLI Suite, Qt5, VS Code/Cursor, and Chrome Dark Unification
After building the frosted-glass desktop foundation, strict fontconfig bindings, and fcitx5 styling in the previous two parts, an idle desktop already looks clean and cohesive. The illusion breaks the second you actually start working, though:
- You open your freshly tuned frosted-glass terminal, type
ls,cat, ortop, and get hit with monochrome 1990s plain text. - You launch a Qt5 utility (a database client, screenshot tool, or media app), and a glaring light-gray, square-cornered window with broken icons punches a hole right through your dark desktop.
- You switch to VS Code or Cursor and notice mismatched font weights between editor and integrated terminal, skewed CJK/Latin columns, and missing Nerd glyphs.
- You open Chrome to check docs, only to see mismatched tabs, menus, and webpage fonts—and worse, when you follow a tutorial to edit
Preferences, Chrome silently wipes your changes on restart.
In this guide, we unify all four of those rough edges in one pass. Everything follows the same engineering discipline as the rest of the series: zero sudo required (CLI binaries live in ~/.local/bin, Qt5 runs through user-space qt5ct, editor configs preserve existing JSONC comments losslessly, and Chrome changes are wrapped in an offline-safe script with --restore), with concrete verification checks and fast rollback at every step.
1. Modern Terminal CLI Suite (Rootless in ~/.local/bin)
In Part 3, we locked the terminal font to Sarasa Term SC Nerd 14 (strict 2:1 CJK/Latin width plus Nerd icons) on top of Zsh + Powerlevel10k + Terminator with a deep blue-gray backdrop (#131722 + #89b4fa cursor) and frosted transparency.
Next, drop four high-frequency CLI tools—eza, bat, btop, and fastfetch—as prebuilt single binaries straight into ~/.local/bin/. This avoids touching system packages with sudo, sidesteps outdated Ubuntu 22.04 apt versions, and lets you rsync the whole bin directory cleanly between 22.04 and 24.04.
First, verify ~/.local/bin sits at the front of PATH in ~/.zshrc:
1 | export PATH="$HOME/.local/bin:$PATH" |
1.1 eza: Modern ls with Icons, Directories First, and Git Status
eza is the actively maintained community successor to exa. Register four guarded aliases in ~/.zshrc:
1 | if command -v eza >/dev/null 2>&1; then |
Why these flags pay off daily:
--icons=auto: Renders Nerd filetype icons in interactive terminals (matchingSarasa Term SC Nerdcleanly), and automatically strips icons and ANSI colors when piped intogreporawkso scripts never break.--group-directories-first: Always lists directories above files, making large source trees much faster to scan.--git: Shows staged and modified Git status right beside each entry inllandla.lt: A crisp two-level directory tree that beats typingtreeflags by hand when inspecting config directories.
1.2 bat: Syntax-Highlighted Inspection While Keeping Stock cat
bat adds syntax highlighting, line numbers, and Git diff gutter markers. Create ~/.config/bat/config:
1 | # Modern dark bat configuration |
Then wire up a short catp alias in ~/.zshrc:
1 | if command -v bat >/dev/null 2>&1; then |
Why not
alias cat='bat'directly?
I have been bitten by hijackingcatmore than once. Even thoughbatdegrades gracefully in most pipes, concatenating files quickly, copying clean plain text without line numbers or borders, or running inside certain terminal wrappers still trips years of muscle memory. Keeping nativecatuntouched preserves 100% script and clipboard predictability, whilecatp <file>gives you syntax-highlighted previews on demand.
1.3 btop: Transparent Rounded System Monitor
Compared to monochrome top or utilitarian htop, btop takes full advantage of 24-bit truecolor and rounded box borders. Here is the tested core ~/.config/btop/btop.conf (with adwaita-dark.theme placed in ~/.config/btop/themes/):
1 | color_theme = "~/.config/btop/themes/adwaita-dark.theme" |
Three settings make the biggest visual difference:
theme_background = False: The key tweak. Drops the theme’s opaque background fill so Terminator’s dark tint and frosted glass show straight through instead of slapping a flat black rectangle onto your terminal.rounded_corners = True+truecolor = True: Echoes the rounded geometry ofFluent-round-Dark.graph_symbol = "braille": Draws CPU, memory, and network curves with fine braille dots instead of chunky blocks, which looks remarkably sharp inSarasa Term SC Nerd. Keepshow_battery = Falseon desktops to save vertical space, or flip it back toTrueon laptops.
1.4 fastfetch: Sky-Blue Dashboard and Cross-Toolkit Verification Probe
fastfetch isn’t just for desktop screenshots—in this series it doubles as an engineering verification probe that reports active Qt and GTK2/3/4 themes, icon sets, and fonts side by side in one command. We’ll use it directly in Section 2 to verify Qt5 alignment.
Write ~/.config/fastfetch/config.jsonc:
1 | { |
Those two RGB values weren’t picked at random: 38;2;98;160;234 (#62a0ea) for keys and 38;2;153;193;241 (#99c1f1) for title match Colloid-Dark‘s sky-blue folders and the link highlight roles in our Qt5 palette below.

2. Unifying Qt5 Apps (QT_QPA_PLATFORMTHEME=qt5ct, Rootless)
2.1 Why Qt5 Apps Revert to a Retro Light-Gray Look on GNOME
Ubuntu GNOME is a GTK-centric desktop without KDE Plasma’s platform integration daemon running in the background. When a Qt5 app launches, it asks QPA (Qt Platform Abstraction) for desktop styling; without a matching platform theme plugin in the environment, Qt5 falls back to a bare-bones light-gray default:
- Ignores GNOME’s
Fluent-round-Darkdark theme; - Misses the
Colloid-Darkicon set, leaving toolbars with mismatched monochrome icons; - Ignores
Inter 11and pops up dated native Qt file open/save dialogs.
The lightest user-space solution is qt5ct (Qt5 Configuration Tool—once the qt5ct plugin is installed on the system, every config file, color palette, QSS stylesheet, and env var lives in your home directory with zero sudo). Export one environment variable in your desktop session:
1 | QT_QPA_PLATFORMTHEME=qt5ct |
Every Qt5 application will then read ~/.config/qt5ct/qt5ct.conf on startup, picking up unified widget styling, color roles, icons, fonts, file dialogs, and QSS stylesheets.
2.2 Main Config: ~/.config/qt5ct/qt5ct.conf
Create the directories first:
1 | mkdir -p ~/.config/qt5ct/{colors,qss} |
Write the tested ~/.config/qt5ct/qt5ct.conf (sanitized to core appearance, font, and interaction settings):
1 | [Appearance] |
Check four crucial details:
- Use absolute paths:
color_scheme_pathandstylesheetsinsideqt5ct.conf**do not expand~or$HOME**—replace/home/<user>with your actual$HOMEpath. style=Fusion+custom_palette=true:Fusionis Qt’s most predictable cross-platform widget engine and responds cleanly to custom palettes and QSS, avoiding the broken widget geometry and white-on-white text glitches common with third-party GTK2 bridge themes.icon_theme=Colloid-Dark+standard_dialogs=gtk3: Matches desktop icons identically, and routes Open/Save file dialogs directly to the native GTK3 file chooser.- Exact font-size parity with GNOME:
general="Inter,11,..."matches GNOME’sfont-name='Inter 11', andfixed="Sarasa Term SC Nerd,13,..."matchesmonospace-font-name='Sarasa Term SC Nerd 13'. Combined with Part 3’s strongfontconfigbinding, Chinese UI labels in Qt5 apps fall back seamlessly toHarmonyOS Sans SC.
2.3 21-Role Palette + Rounded QSS: Shaping Fusion to Match Fluent-round-Dark
Flipping Fusion to a generic dark gray isn’t enough. Making Qt5 windows indistinguishable from GTK at a glance takes a complete palette foundation paired with targeted QSS polish:
- 21-role palette (
fluent-round-dark.conf): Defines all 21 standardQPalettecolor roles acrossactive_colors(focused),inactive_colors(unfocused), anddisabled_colors(disabled). Window surfaces (#202020), input fields (#262626), alternating rows (#2b2b2b), and button faces (#323232) match the exact grayscale ramp sampled fromFluent-round-Darkin Part 2. Selection highlights lock to#3584e4(matchingColloid-Darksky blue), desaturating naturally to#2c68b0when unfocused, while link colors#62a0ea/#99c1f1mirrorfastfetch. Because this sets the underlyingQPalette, even Qt5 apps with heavy custom widgets stay legible with zero inverted-contrast disasters. - Rounded stylesheet (
fluent-round-dark.qss): StockFusionwidgets have boxy corners and thick scrollbars. Our QSS softensQToolTip,QMenu,QPushButton,QLineEdit/QComboBox, andQTabBar::tabto6px–8pxradii, highlights focused inputs, primary buttons, and active tab underlines in#3584e4, and slims vertical/horizontal scrollbars down to8pxtransparent tracks with4pxrounded floating handles.
Both full tested files are ready to copy below:
Expand full 21-role palette: ~/.config/qt5ct/colors/fluent-round-dark.conf
1 | [ColorScheme] |
Expand full rounded QSS stylesheet: ~/.config/qt5ct/qss/fluent-round-dark.qss
1 | /* Fluent-round-Dark aligned Qt5 stylesheet (qt5ct) */ |
2.4 Inject User-Space Env Vars and Verify with fastfetch
So that both GNOME GUI launchers and terminal shells pick up QT_QPA_PLATFORMTHEME, write it into systemd’s user environment directory (rootless) and add a fallback line in ~/.profile:
1 | mkdir -p ~/.config/environment.d |
Log out and back into GNOME (or test immediately in your current shell via export QT_QPA_PLATFORMTHEME=qt5ct), then run fastfetch. Seeing these three aligned lines confirms Qt5 and GTK2/3/4 are locked together:
1 | Theme Fusion [Qt], Fluent-round-Dark [GTK2/3/4] |
![qt5ct styled with the Fluent-round-Dark palette and rounded QSS alongside fastfetch [Qt]/[GTK2/3/4] alignment](/img/ubuntu-gnome/03-qt5-before-after.webp)
3. Editor Alignment: Lossless VS Code & Cursor Sync
Writing code takes up the majority of your day on a workstation. If your editor still runs default Dark+ or a different monospace font, jumping between Terminator and VS Code / Cursor feels jarring every single time.
3.1 Install Theme and File Icon Extensions in One Pass
VS Code and Cursor keep separate extension directories, so install both core extensions via CLI for each editor:
1 | # VS Code |
Why Catppuccin Mocha + Material Icon Theme? Mocha‘s muted blue-gray canvas and low-glare foreground sit in the exact same dark color range as Fluent-round-Dark and our Terminator palette (#131722 + #89b4fa), staying comfortable over long sessions. Material Icon Theme‘s clean flat file icons also echo eza in the terminal and Colloid-Dark in file managers.
3.2 Edit settings.json Losslessly (Pitfall: Never Overwrite JSONC with jq)
VS Code reads ~/.config/Code/User/settings.json; Cursor reads ~/.config/Cursor/User/settings.json.
Watch out for a classic gotcha: both settings.json files are JSONC (JSON with Comments), which allows // line comments, /* */ block comments, and trailing commas. Running jq '. + {...}' settings.json either crashes immediately on comments or silently strips every inline note you painstakingly wrote.
Back up both files first, then merge the snippet below directly inside the editor so existing comments and extension keys remain untouched:
1 | # Back up before editing |
Core keys to merge into settings.json:
1 | { |
A few tested details worth highlighting:
- Pin
Sarasa Term SC Nerdfirst ineditor.fontFamily: Guarantees strict2:1alignment between Chinese comments and English code (especially welcome in Markdown tables, ASCII diagrams, and aligned inline comments), with'JetBrains Mono', Consolas, monospaceas clean fallbacks. - Set
terminal.integrated.fontFamilyexplicitly: Ensures Powerlevel10k,eza, andbtoprender icons and braille graphs cleanly inside the integrated terminal panel with zero missing-glyph boxes. editor.fontWeight: "400"+editor.fontLigatures: true: Locks regular 400 weight to prevent overly thin rendering under certain Linux hinting configs, while enabling programming ligatures like=>,!==,->, and<=.

4. Chrome Dark Unification (Overwrite Protection + --restore Script)
With the terminal, Qt5, and editors aligned, Chrome is the last major visual outlier. Many guides tell you to edit ~/.config/google-chrome/Default/Preferences by hand—only for every edit to vanish the next time you open Chrome. Let’s look at why that happens, then solve it permanently with a safe script.
4.1 Pitfall: Why Editing Preferences While Chrome Is Running Always Fails
On startup, Chrome loads ~/.config/google-chrome/Default/Preferences completely into memory. If you edit the file on disk while Chrome is still running—even if every window looks closed while background extension processes remain alive—Chrome’s next periodic flush or clean shutdown overwrites the disk file from its in-memory copy, wiping your theme and font changes instantly.
Hence the non-negotiable rule for Chrome config edits: verify every Chrome process has exited first, then back up and write atomically.
4.2 Chromium Linux Theme Keys and Enum Values
To align Chrome on Linux with GNOME’s dark chrome and our font stack, you only need to patch three exact nodes in Preferences JSON (never touching bookmarks, extensions, accounts, or cookies):
extensions.theme.system_theme(Chromium Linux system theme integration enum):0=Classic(Chromium’s default classic theme; does not follow the GTK shell)1=GTK(follows the active GNOME GTK theme)2=QT(inherits Qt styling)
Pitfall warning: Under GTK3 themes with a translucentheaderbarsuch asFluent-round-Dark, enabling GTK integration (system_theme = 1) causes Chrome to mis-map the translucent top bar into dark text on a gray background, destroying text contrast on inactive tabs and tab groups. The best practice is therefore to keep **0(Classic theme) +color_scheme2 = 2(Dark mode)**—syncing only the three web font families without enabling GTK shell integration.
browser.theme.color_scheme2 = 2:
Explicitly pins the browser to dark mode (2= Dark) so the tab strip, address bar, and internal settings pages all retain crisp native high-contrast dark styling and never flash white across desktop session switches.webkit.webprefs.fonts:
Syncs default web font families with our typography stack:standard/sansserif:Interfor common script (Zyyy),HarmonyOS Sans SCfor Simplified Chinese (Hans);fixed(code blocks / monospace):Sarasa Term SC Nerdfor bothZyyyandHans.
4.3 apply-chrome-theme.sh: Running-Process Guard + Atomic Write + --restore
Hand-editing a minified multi-megabyte Preferences JSON file is error-prone and easy to forget to back up. Instead, put this zero-dependency script (Bash + stock Python 3) at ~/.local/bin/apply-chrome-theme.sh, built around four safeguards:
- Running-process guard: Uses exact process-name matching (
pgrep -x chrome/pgrep -x google-chrome, intentionally avoidingpgrep -f chromeso it never self-matches its own filename) and aborts immediately if Chrome is still running. - Automatic timestamped backups: Snapshots the original
Preferencesinto~/.local/share/chrome-theme-backups/and updates alatest.baksymlink before every write. - Same-directory temp file +
os.replace()atomic swap: Uses Python’s standardjsonmodule to patch only the 3 target keys, flushes andfsyncs a sibling temp file, then atomically replacesPreferences—so an interrupted run can never leave a corrupted file. - Built-in
--restoreone-click rollback: Close Chrome and pass--restoreto revert cleanly to the exact prior state at any time.
Expand full apply-chrome-theme.sh
1 |
|
Mark it executable and run it in two steps:
1 | chmod +x ~/.local/bin/apply-chrome-theme.sh |
Relaunch Chrome and check three things to confirm everything took effect:
- The tab strip, address bar, and tab groups display crisp native high-contrast dark styling (without the gray-on-dark contrast drop caused by translucent GTK mapping).
- Open
chrome://settings/appearanceand verify the theme is set to Classic + Dark mode and Standard / Sans-serif / Fixed-width fonts reflect the new stack. - Open any technical doc or code page and confirm crisp CJK/Latin rendering and cleanly aligned monospace code blocks.

5. One-Click Rollback and What’s Next
Every change in this guide lives inside your home directory across four decoupled modules—any single piece can be rolled back in seconds without affecting the rest:
| Module | Quick Rollback |
|---|---|
| Terminal CLI Suite | Remove the eza/catp aliases from ~/.zshrc, and remove ~/.config/{bat,btop,fastfetch} plus ~/.local/bin/{eza,bat,btop,fastfetch} |
| Qt5 Appearance | Remove ~/.config/environment.d/qt5ct.conf and strip QT_QPA_PLATFORMTHEME=qt5ct from ~/.profile (or move ~/.config/qt5ct/ aside), then log out and back in |
| VS Code / Cursor | Copy the pre-edit settings.json.bak back over settings.json, and run --uninstall-extension if desired |
| Chrome Dark Theme | Close Chrome completely and run ~/.local/bin/apply-chrome-theme.sh --restore |
Once you’re inside GNOME, the entire working environment—top bar, Dock, dual file managers, typography, IME, terminal CLI, Qt5 apps, VS Code/Cursor, and Chrome—now shares one seamless dark engineering aesthetic.
Only the first dozen seconds after power-on still break the spell: from pressing the power button to typing your login password—the stock magenta GRUB menu, mismatched boot splash, purple-gray GDM login screen, and uncoordinated lockscreen. In the next part, we close that final mile with a non-destructive, fully reversible GRUB → Plymouth → GDM → Lockscreen loop, plus a global rollback matrix for the entire desktop stack.
Series Navigation
| # | Article | Core Topics |
|---|---|---|
#0 |
Ubuntu Workstation Setup · Series Index | End-to-end architecture, dual-machine baseline, and reading roadmap |
#1 |
Ubuntu 22.04 GNOME Desktop Configuration Guide | Fundamentals: GNOME extensions, window ergonomics, and X11 vs. Wayland |
#2 |
Desktop Visual Foundation, Frosted Glass Blur, and Dual File Manager Pitfalls | Fluent-round-Dark, Colloid-Dark, Blur my Shell, and Nautilus/Nemo opacity fix |
#3 |
Ubuntu Font Rendering, Strict fontconfig Binding, fcitx5 Theming, and Shortcut Pitfalls | Inter + HarmonyOS Sans SC + Sarasa, strong binding, fcitx5, and Win+D fix |
#4 |
👉 Current: Ending Cross-Toolkit Visual Clashes: Terminal CLI Suite, Qt5, VS Code/Cursor, and Chrome Dark Unification | Modern terminal CLI, qt5ct 21-role palette + QSS, lossless editor config, offline-safe Chrome script |
#5 |
End-to-End Boot and Lockscreen Loop: GRUB, Plymouth, GDM, and Lockscreen | Dark boot-to-lockscreen loop, non-destructive GDM via update-alternatives, and global rollback matrix |
#6 |
Ubuntu vimplus Setup and Configuration Guide | Terminal IDE stack: vimplus + coc.nvim + clangd and Markdown preview |
#7 |
No Neovim Required: Non-Invasively Turn Classic Vim 9 + vimplus into a Modern Dark Frosted-Glass Editor | Transparent Catppuccin Mocha, opaque rounded popups, pill statusline, and large-file freeze protection |
#8 |
End-to-End Ubuntu Dev Tools Visual & Workflow Unification: VS Code, Cursor, tmux, Git Delta, fzf, and Typora | Fine-tuned VS Code/Cursor, plugin-free tmux pill status bar, delta/fzf/fd/zoxide chain, and Typora/Guake/gedit polish |








