Convert British spellings to American across the repo
colour -> color, behaviour -> behavior, centre -> center, favourite -> favorite, and about twenty other pairs, applied consistently across comments, docs, error/UI copy, and a handful of QML identifiers that used the British spelling as their actual name: SystemSettings' serialiseValue/serialiseTable/normaliseGradient, Displays' normaliseModes, Wallpaper's normalisePolicy, SettingsBackup's serialiseHomeState, DateTime's ntpSynchronised property, Clipboard's _normalise helper, and ShortcutCapture's cancelled signal (with its onCancelled handler in ShortcutsPage.qml). Every call site and the two tests that assert on the literal source text (settings-ownership and settings-backup-live contracts) were updated in lockstep. Left untouched: config/dot/espanso/match/packages/misspell-en/ is a vendored third-party autocorrect dictionary -- its entries are typo corrections, not our prose, and rewriting them would fight the package's own purpose (and any future re-sync from upstream). The already-American `favorites` property (Home page pinned accessories) was never actually misspelled -- only nearby comments and error strings said "favourites" -- so no data migration was needed there. Claude-Session: https://claude.ai/code/session_01E6TJUAh41HaP25MVHWkhRZ
This commit is contained in:
@@ -24,7 +24,7 @@ Rectangle {
|
||||
id: root
|
||||
|
||||
// Horizontal inset, normally the parent's corner radius. Below that the
|
||||
// line runs out onto the curve and looks like a rendering artefact.
|
||||
// line runs out onto the curve and looks like a rendering artifact.
|
||||
property real inset: Theme.popoverRadius
|
||||
|
||||
anchors.leftMargin: root.inset
|
||||
@@ -33,7 +33,7 @@ Rectangle {
|
||||
implicitHeight: 1
|
||||
height: 1
|
||||
|
||||
// The colour stops are the only place the two accents touch.
|
||||
// The color stops are the only place the two accents touch.
|
||||
gradient: Gradient {
|
||||
orientation: Gradient.Horizontal
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// A freedesktop symbolic icon, recoloured to a Theme token.
|
||||
// A freedesktop symbolic icon, recolored to a Theme token.
|
||||
//
|
||||
// Adwaita's symbolic SVGs carry a hardcoded near-black fill (#2e3436) and Qt
|
||||
// does not do GTK's runtime recolouring, so drawn as-is they are invisible on
|
||||
// does not do GTK's runtime recoloring, so drawn as-is they are invisible on
|
||||
// a Tokyo Night background — verified on this machine. The fix is to paint a
|
||||
// themed rectangle through the icon's alpha channel.
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// A GNOME-style quick-settings tile: big rounded button with an icon and a
|
||||
// label, filled with the accent colour when active.
|
||||
// label, filled with the accent color when active.
|
||||
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
@@ -52,7 +52,7 @@ Rectangle {
|
||||
spacing: 10
|
||||
|
||||
// ThemedIcon, not a bare IconImage: Adwaita's symbolic SVGs carry a
|
||||
// hardcoded #2e3436 fill and Qt does not recolour them the way GTK
|
||||
// hardcoded #2e3436 fill and Qt does not recolor them the way GTK
|
||||
// does, so drawn directly they are all but invisible on this palette.
|
||||
ThemedIcon {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
@@ -25,7 +25,7 @@ Item {
|
||||
opacity: enabled ? 1.0 : 0.45
|
||||
|
||||
// ThemedIcon, not a bare IconImage — see the note in Toggle.qml: Adwaita
|
||||
// symbolic icons have a hardcoded near-black fill that Qt will not recolour.
|
||||
// symbolic icons have a hardcoded near-black fill that Qt will not recolor.
|
||||
ThemedIcon {
|
||||
id: leadingIcon
|
||||
anchors.left: parent.left
|
||||
@@ -57,7 +57,7 @@ Item {
|
||||
border.width: 0
|
||||
|
||||
// The gradient is anchored to the full track, not to the fill, so
|
||||
// the colour at a given position never moves as the value changes —
|
||||
// the color at a given position never moves as the value changes —
|
||||
// dragging reveals the prism rather than squashing it.
|
||||
gradient: Gradient {
|
||||
orientation: Gradient.Horizontal
|
||||
|
||||
Reference in New Issue
Block a user