Jelajahi Sumber

Add Assistive Access setting for readable titles

Adds an Assistive Access tab under System Settings > Desktop & Themes with a toggle for readable window titles, which draws a dark outline around float window titles so they stay legible on light wallpapers and theme colours.

The choice is stored as the "assistive-titles" desktop preference. The desktop reads it on start and toggles body.assistiveTitles, which the new rules in ao.css key on. An open desktop updates at once, directly when the settings page runs inside it and via localStorage when it is in another tab.

Includes a live preview and locale strings (zh-TW, zh-CN, en, ja, ko).
Toby Chui 1 Minggu lalu
induk
melakukan
116d9f499e

+ 1 - 0
src/desktop.go

@@ -64,6 +64,7 @@ func DesktopInit() {
 		{Name: "Mobile UX", Desc: "Mobile Desktop Shortcuts", StartDir: "SystemAO/desktop/settings/mobile_ux.html"},
 		{Name: "Startup Interface", Desc: "Workspace opened after sign in", StartDir: "SystemAO/desktop/settings/interface.html"},
 		{Name: "System Fonts", Desc: "Fonts of the system interface", StartDir: "SystemAO/desktop/settings/fonts.html"},
+		{Name: "Assistive Access", Desc: "Readability aids for the desktop", StartDir: "SystemAO/desktop/settings/assistive.html"},
 	} {
 		setting.IconPath = "SystemAO/desktop/img/personalization.png"
 		setting.Group = "Desktop"

+ 14 - 0
src/system/locale/system_settings.json

@@ -86,6 +86,7 @@
                 "tab/desktop/Startup Interface": "啟動介面",
                 "tab/desktop/Notifications": "通知",
                 "tab/desktop/System Fonts": "系統字型",
+                "tab/desktop/Assistive Access": "輔助使用",
                 "tab/disk/RAID": "RAID 磁碟陣列",
                 "tab/disk/File Manager": "檔案管理器",
                 "tab/network/Screen Share Relay": "螢幕分享中繼",
@@ -113,6 +114,7 @@
                 "desc/desktop/Startup Interface": "登入後開啟的工作區",
                 "desc/desktop/Notifications": "選擇通知的接收方式並設定傳送代理",
                 "desc/desktop/System Fonts": "系統介面使用的字型",
+                "desc/desktop/Assistive Access": "讓桌面更容易閱讀的輔助功能",
                 "desc/device/Client Device": "你正在使用的瀏覽器詳細資訊",
                 "desc/device/Device Testing": "音訊、顯示、鍵盤、滑鼠及觸控測試",
                 "desc/device/Language": "設定系統的顯示語言",
@@ -292,6 +294,7 @@
                 "tab/desktop/Startup Interface": "啟動介面",
                 "tab/desktop/Notifications": "通知",
                 "tab/desktop/System Fonts": "系統字型",
+                "tab/desktop/Assistive Access": "輔助使用",
                 "tab/disk/RAID": "RAID 磁碟陣列",
                 "tab/disk/File Manager": "檔案管理器",
                 "tab/network/Screen Share Relay": "螢幕分享中繼",
@@ -319,6 +322,7 @@
                 "desc/desktop/Startup Interface": "登入後開啟的工作區",
                 "desc/desktop/Notifications": "選擇通知的接收方式並設定傳送代理",
                 "desc/desktop/System Fonts": "系統介面使用的字型",
+                "desc/desktop/Assistive Access": "讓桌面更容易閱讀的輔助功能",
                 "desc/device/Client Device": "你正在使用的瀏覽器詳細資訊",
                 "desc/device/Device Testing": "音訊、顯示、鍵盤、滑鼠及觸控測試",
                 "desc/device/Language": "設定系統的顯示語言",
@@ -497,6 +501,7 @@
                 "tab/desktop/Startup Interface": "启动界面",
                 "tab/desktop/Notifications": "通知",
                 "tab/desktop/System Fonts": "系统字体",
+                "tab/desktop/Assistive Access": "辅助功能",
                 "tab/disk/RAID": "RAID 磁盘阵列",
                 "tab/disk/File Manager": "文件管理器",
                 "tab/network/Screen Share Relay": "屏幕共享中继",
@@ -524,6 +529,7 @@
                 "desc/desktop/Startup Interface": "登录后打开的工作区",
                 "desc/desktop/Notifications": "选择通知的接收方式并配置发送代理",
                 "desc/desktop/System Fonts": "系统界面使用的字体",
+                "desc/desktop/Assistive Access": "让桌面更易于阅读的辅助功能",
                 "desc/device/Client Device": "你正在使用的浏览器详细信息",
                 "desc/device/Device Testing": "音频、显示、键盘、鼠标及触控测试",
                 "desc/device/Language": "设置系统的显示语言",
@@ -693,6 +699,7 @@
                 "tab/desktop/Startup Interface": "Startup Interface",
                 "tab/desktop/Notifications": "Notifications",
                 "tab/desktop/System Fonts": "System Fonts",
+                "tab/desktop/Assistive Access": "Assistive Access",
                 "tab/disk/RAID": "RAID",
                 "tab/disk/File Manager": "File Manager",
                 "tab/network/Screen Share Relay": "Screen Share Relay",
@@ -720,6 +727,7 @@
                 "desc/desktop/Startup Interface": "Workspace opened after sign in",
                 "desc/desktop/Notifications": "Choose how you receive notifications and configure delivery agents",
                 "desc/desktop/System Fonts": "Fonts of the system interface",
+                "desc/desktop/Assistive Access": "Readability aids for the desktop",
                 "desc/device/Client Device": "Detail about the browser you are using",
                 "desc/device/Device Testing": "Audio, display, keyboard, mouse and touch testing",
                 "desc/device/Language": "Set the display language of the system",
@@ -888,6 +896,7 @@
                 "tab/desktop/Startup Interface": "Startup Interface",
                 "tab/desktop/Notifications": "Notifications",
                 "tab/desktop/System Fonts": "System Fonts",
+                "tab/desktop/Assistive Access": "Assistive Access",
                 "tab/disk/RAID": "RAID",
                 "tab/disk/File Manager": "File Manager",
                 "tab/network/Screen Share Relay": "Screen Share Relay",
@@ -915,6 +924,7 @@
                 "desc/desktop/Startup Interface": "Workspace opened after sign in",
                 "desc/desktop/Notifications": "Choose how you receive notifications and configure delivery agents",
                 "desc/desktop/System Fonts": "Fonts of the system interface",
+                "desc/desktop/Assistive Access": "Readability aids for the desktop",
                 "desc/device/Client Device": "Detail about the browser you are using",
                 "desc/device/Device Testing": "Audio, display, keyboard, mouse and touch testing",
                 "desc/device/Language": "Set the display language of the system",
@@ -1093,6 +1103,7 @@
                 "tab/desktop/Startup Interface": "起動インターフェース",
                 "tab/desktop/Notifications": "通知",
                 "tab/desktop/System Fonts": "システムフォント",
+                "tab/desktop/Assistive Access": "アクセシビリティ",
                 "tab/disk/RAID": "RAIDアレイ",
                 "tab/disk/File Manager": "ファイルマネージャー",
                 "tab/network/Screen Share Relay": "画面共有リレー",
@@ -1120,6 +1131,7 @@
                 "desc/desktop/Startup Interface": "サインイン後に開くワークスペース",
                 "desc/desktop/Notifications": "通知の受け取り方法と配信エージェントを設定",
                 "desc/desktop/System Fonts": "システム画面で使うフォント",
+                "desc/desktop/Assistive Access": "デスクトップを読みやすくする補助機能",
                 "desc/device/Client Device": "使用中のブラウザーの詳細",
                 "desc/device/Device Testing": "オーディオ、ディスプレイ、キーボード、マウス、タッチのテスト",
                 "desc/device/Language": "システムの表示言語を設定",
@@ -1248,6 +1260,7 @@
                 "tab/desktop/Startup Interface": "시작 인터페이스",
                 "tab/desktop/Notifications": "알림",
                 "tab/desktop/System Fonts": "시스템 글꼴",
+                "tab/desktop/Assistive Access": "손쉬운 사용",
                 "tab/disk/RAID": "RAID 어레이",
                 "tab/disk/File Manager": "파일 관리자",
                 "tab/network/Screen Share Relay": "화면 공유 릴레이",
@@ -1275,6 +1288,7 @@
                 "desc/desktop/Startup Interface": "로그인 후 열리는 작업 공간",
                 "desc/desktop/Notifications": "알림 수신 방법 선택 및 전달 에이전트 설정",
                 "desc/desktop/System Fonts": "시스템 인터페이스에 쓰이는 글꼴",
+                "desc/desktop/Assistive Access": "데스크톱을 읽기 쉽게 하는 보조 기능",
                 "desc/device/Client Device": "사용 중인 브라우저 정보",
                 "desc/device/Device Testing": "오디오, 디스플레이, 키보드, 마우스 및 터치 테스트",
                 "desc/device/Language": "시스템 표시 언어 설정",

+ 56 - 7
src/system/locale/system_settings/desktop.json

@@ -108,7 +108,14 @@
                 "fnt/script/thai": "泰文",
                 "fnt/script/kana": "日文假名",
                 "fnt/script/han": "漢字",
-                "fnt/script/hangul": "韓文字母"
+                "fnt/script/hangul": "韓文字母",
+                "ast/desc": "讓桌面更容易閱讀的輔助功能,變更會即時儲存。",
+                "ast/windows": "視窗",
+                "ast/titles": "清晰的視窗標題",
+                "ast/titles/desc": "在視窗標題文字周圍加上深色外框,在淺色桌布、視窗與主題色彩上依然清晰易讀。",
+                "ast/preview": "視窗標題",
+                "ast/saved": "已儲存",
+                "ast/savefailed": "無法儲存"
             },
             "titles": {},
             "placeholder": {}
@@ -219,7 +226,14 @@
                 "fnt/script/thai": "泰文",
                 "fnt/script/kana": "日文假名",
                 "fnt/script/han": "漢字",
-                "fnt/script/hangul": "韓文字母"
+                "fnt/script/hangul": "韓文字母",
+                "ast/desc": "讓桌面更容易閱讀的輔助功能,變更會即時儲存。",
+                "ast/windows": "視窗",
+                "ast/titles": "清晰的視窗標題",
+                "ast/titles/desc": "在視窗標題文字周圍加上深色外框,在淺色桌布、視窗與主題色彩上依然清晰易讀。",
+                "ast/preview": "視窗標題",
+                "ast/saved": "已儲存",
+                "ast/savefailed": "無法儲存"
             },
             "titles": {},
             "placeholder": {}
@@ -330,7 +344,14 @@
                 "fnt/script/thai": "泰文",
                 "fnt/script/kana": "日文假名",
                 "fnt/script/han": "汉字",
-                "fnt/script/hangul": "韩文字母"
+                "fnt/script/hangul": "韩文字母",
+                "ast/desc": "让桌面更易于阅读的辅助功能,更改会立即保存。",
+                "ast/windows": "窗口",
+                "ast/titles": "清晰的窗口标题",
+                "ast/titles/desc": "在窗口标题文字周围添加深色描边,使其在浅色壁纸、窗口和主题颜色上依然清晰可读。",
+                "ast/preview": "窗口标题",
+                "ast/saved": "已保存",
+                "ast/savefailed": "无法保存"
             },
             "titles": {},
             "placeholder": {}
@@ -441,7 +462,14 @@
                 "fnt/script/thai": "Thai",
                 "fnt/script/kana": "Japanese kana",
                 "fnt/script/han": "Chinese characters",
-                "fnt/script/hangul": "Hangul"
+                "fnt/script/hangul": "Hangul",
+                "ast/desc": "Aids that make the desktop easier to read. Changes are saved as you make them.",
+                "ast/windows": "Windows",
+                "ast/titles": "Readable window titles",
+                "ast/titles/desc": "Draw a dark outline around window titles so they stay readable over light wallpapers, windows and theme colours.",
+                "ast/preview": "Window title",
+                "ast/saved": "Saved",
+                "ast/savefailed": "Could not save"
             },
             "titles": {},
             "placeholder": {}
@@ -552,7 +580,14 @@
                 "fnt/script/thai": "Thai",
                 "fnt/script/kana": "Japanese kana",
                 "fnt/script/han": "Chinese characters",
-                "fnt/script/hangul": "Hangul"
+                "fnt/script/hangul": "Hangul",
+                "ast/desc": "Aids that make the desktop easier to read. Changes are saved as you make them.",
+                "ast/windows": "Windows",
+                "ast/titles": "Readable window titles",
+                "ast/titles/desc": "Draw a dark outline around window titles so they stay readable over light wallpapers, windows and theme colours.",
+                "ast/preview": "Window title",
+                "ast/saved": "Saved",
+                "ast/savefailed": "Could not save"
             },
             "titles": {},
             "placeholder": {}
@@ -663,7 +698,14 @@
                 "fnt/script/thai": "タイ文字",
                 "fnt/script/kana": "かな",
                 "fnt/script/han": "漢字",
-                "fnt/script/hangul": "ハングル"
+                "fnt/script/hangul": "ハングル",
+                "ast/desc": "デスクトップを読みやすくする補助機能です。変更はすぐに保存されます。",
+                "ast/windows": "ウィンドウ",
+                "ast/titles": "読みやすいウィンドウタイトル",
+                "ast/titles/desc": "ウィンドウタイトルの文字に濃い縁取りを付け、明るい壁紙やウィンドウ、テーマカラーの上でも読みやすくします。",
+                "ast/preview": "ウィンドウタイトル",
+                "ast/saved": "保存しました",
+                "ast/savefailed": "保存できませんでした"
             },
             "titles": {},
             "placeholder": {}
@@ -774,7 +816,14 @@
                 "fnt/script/thai": "타이 문자",
                 "fnt/script/kana": "가나",
                 "fnt/script/han": "한자",
-                "fnt/script/hangul": "한글"
+                "fnt/script/hangul": "한글",
+                "ast/desc": "데스크톱을 더 읽기 쉽게 만드는 보조 기능입니다. 변경 사항은 바로 저장됩니다.",
+                "ast/windows": "창",
+                "ast/titles": "읽기 쉬운 창 제목",
+                "ast/titles/desc": "창 제목 글자 주위에 어두운 윤곽을 그려 밝은 배경 화면, 창, 테마 색상 위에서도 잘 보이게 합니다.",
+                "ast/preview": "창 제목",
+                "ast/saved": "저장됨",
+                "ast/savefailed": "저장할 수 없습니다"
             },
             "titles": {},
             "placeholder": {}

+ 211 - 0
src/web/SystemAO/desktop/settings/assistive.html

@@ -0,0 +1,211 @@
+<!-- Assistive Access settings: loaded into SystemAO/system_setting/index.html as a fragment -->
+<style>
+#astRoot {
+    font-family: var(--ss-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif);
+    color: var(--ss-text);
+}
+
+/*
+    The preview draws a piece of the desktop, not of this page, so it keeps
+    the desktop's own colours in light and dark mode: a light window behind
+    a translucent title bar, the case the option is for. The bar colour is
+    replaced by the user's theme colour when one is set.
+*/
+#astRoot .ast-preview-row { display: block; min-height: 0; padding: 12px 14px 14px; }
+#astRoot .ast-preview {
+    position: relative;
+    max-width: 380px;
+    height: 74px;
+    border-radius: 6px;
+    overflow: hidden;
+    background: linear-gradient(135deg, #ffffff 0%, #eef1f4 55%, #dfe5ea 100%);
+    border: 1px solid var(--ss-border);
+}
+#astRoot .ast-bar {
+    position: absolute;
+    top: 0;
+    left: 0;
+    right: 0;
+    height: 30px;
+    background-color: rgba(26, 26, 26, 0.3);
+}
+#astRoot .ast-icon {
+    position: absolute;
+    top: 6px;
+    left: 12.5px;
+    width: 18px;
+    height: 18px;
+    color: #ffffff;
+}
+#astRoot .ast-title {
+    position: absolute;
+    top: 0;
+    left: 30.5px;
+    max-width: calc(100% - 50px);
+    padding: 5px 10px;
+    box-sizing: border-box;
+    font-size: 14px;
+    line-height: 20px;
+    color: #ffffff;
+    white-space: nowrap;
+    overflow: hidden;
+    text-overflow: ellipsis;
+}
+/* Same values as the desktop rule in script/ao.css (the title only, not the icon) */
+#astRoot .ast-preview.on .ast-title {
+    --text-outline-color: rgba(36, 36, 36, 0.9);
+    text-shadow: 0 0 10px var(--text-outline-color), 0px 0px 4px var(--text-outline-color), 0px 0px 2px var(--text-outline-color);
+}
+#astRoot .ast-lines {
+    position: absolute;
+    top: 42px;
+    left: 14px;
+    right: 14px;
+}
+#astRoot .ast-lines span {
+    display: block;
+    height: 6px;
+    margin-bottom: 7px;
+    border-radius: 3px;
+    background: rgba(0, 0, 0, 0.08);
+}
+#astRoot .ast-lines span:nth-child(2) { width: 62%; }
+</style>
+
+<div id="astRoot">
+    <div class="ss-page-desc" locale="ast/desc">Aids that make the desktop easier to read. Changes are saved as you make them.</div>
+
+    <div class="ss-section">
+        <div class="ss-section-title">
+            <svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="1.8" y="2.5" width="12.4" height="11" rx="1.5"/><path d="M1.8 5.8h12.4"/><path d="M4.2 4.15h.01M6.2 4.15h.01"/></svg>
+            <span locale="ast/windows">Windows</span>
+        </div>
+        <div class="ss-card">
+            <div class="ss-row">
+                <div class="ss-row-text">
+                    <div class="ss-row-label" locale="ast/titles">Readable window titles</div>
+                    <div class="ss-row-desc" locale="ast/titles/desc">Draw a dark outline around window titles so they stay readable over light wallpapers, windows and theme colours.</div>
+                </div>
+                <label class="ss-switch">
+                    <input type="checkbox" id="astTitles">
+                    <span class="ss-track"></span>
+                </label>
+            </div>
+            <div class="ss-row ast-preview-row">
+                <div class="ast-preview" id="astPreview" aria-hidden="true">
+                    <div class="ast-bar" id="astPreviewBar">
+                        <svg class="ast-icon" viewBox="0 0 18 18" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"><rect x="2.5" y="2.5" width="13" height="13" rx="2.5"/><path d="M6 9h6M9 6v6" stroke-linecap="round"/></svg>
+                        <span class="ast-title" locale="ast/preview">Window title</span>
+                    </div>
+                    <div class="ast-lines"><span></span><span></span></div>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
+
+<script>
+(function () {
+    /*
+        Assistive Access settings.
+
+        Readable window titles is the desktop preference "assistive-titles"
+        ("true" when on; removed when off, so an account that never opened
+        this page keeps the plain titles). The desktop reads it on start and
+        toggles body.assistiveTitles, which the title rules in script/ao.css
+        are keyed on.
+
+        A desktop that is already open is told at once: directly through
+        setAssistiveTitles when this page runs inside it, and through
+        localStorage (desktop/assistiveChanged) for a desktop in another tab.
+    */
+    /*
+        Own locale instance rather than the shared global one: this page is
+        loaded as a fragment into System Settings, which keeps its own strings
+        on the global applocale.
+    */
+    var astLocale = (typeof NewAppLocale === "function") ? NewAppLocale() : {
+        init: function (f, cb) { cb(); },
+        translate: function () {},
+        getString: function (k, fallback) { return fallback; }
+    };
+
+    function astStr(key, fallback) {
+        return (astLocale && astLocale.getString) ? astLocale.getString(key, fallback) : fallback;
+    }
+
+    var PREF_URL = "../../system/desktop/preference";
+    var TITLES_PREF = "assistive-titles";
+
+    function astReadPref(key, cb) {
+        $.ajax({ url: PREF_URL, method: "POST", data: { preference: key },
+            success: function (d) { cb(typeof d === "string" ? d : ""); },
+            error: function () { cb(""); } });
+    }
+
+    function astWritePref(key, enabled, done) {
+        var data = enabled ? { preference: key, value: "true" } : { preference: key, remove: "true" };
+        $.ajax({ url: PREF_URL, method: "POST", data: data,
+            success: function (d) {
+                if (d != null && d.error !== undefined) {
+                    done(false);
+                    return;
+                }
+                done(true);
+            },
+            error: function () { done(false); } });
+    }
+
+    function astTellDesktop(enabled) {
+        try {
+            if (typeof ao_module_virtualDesktop !== "undefined" && ao_module_virtualDesktop &&
+                typeof parent.setAssistiveTitles === "function") {
+                parent.setAssistiveTitles(enabled);
+            }
+        } catch (e) {}
+        try {
+            localStorage.setItem("desktop/assistiveChanged",
+                JSON.stringify({ key: TITLES_PREF, value: enabled ? "true" : "false", ts: Date.now() }));
+        } catch (e) {}
+    }
+
+    function astShowTitles(enabled) {
+        $("#astTitles").prop("checked", enabled);
+        $("#astPreview").toggleClass("on", enabled);
+    }
+
+    //The preview bar takes the window colour the desktop uses (theme colour at 25 %)
+    function astApplyThemeColor() {
+        astReadPref("themecolor", function (hex) {
+            if (!/^#([A-Fa-f0-9]{3}){1,2}$/.test(hex)) return;
+            var c = hex.substring(1).split("");
+            if (c.length === 3) c = [c[0], c[0], c[1], c[1], c[2], c[2]];
+            c = parseInt(c.join(""), 16);
+            $("#astPreviewBar").css("background-color",
+                "rgba(" + [(c >> 16) & 255, (c >> 8) & 255, c & 255].join(",") + ",0.25)");
+        });
+    }
+
+    $("#astTitles").on("change", function () {
+        var enabled = this.checked;
+        astShowTitles(enabled);
+        astWritePref(TITLES_PREF, enabled, function (ok) {
+            if (!ok) {
+                astShowTitles(!enabled);
+                if (typeof msgbox === "function") msgbox(astStr("ast/savefailed", "Could not save"), false);
+                return;
+            }
+            astTellDesktop(enabled);
+            if (typeof msgbox === "function") msgbox(astStr("ast/saved", "Saved"), true, 1500);
+        });
+    });
+
+    astLocale.init("../locale/system_settings/desktop.json", function () {
+        astLocale.translate();
+        astApplyThemeColor();
+        astReadPref(TITLES_PREF, function (v) {
+            astShowTitles(v === "true");
+        });
+    });
+})();
+</script>

+ 39 - 0
src/web/desktop.html

@@ -1643,6 +1643,7 @@
             initModuleList();
             initDesktopIconPreference()
             initUserDefinedThemeColor();
+            initAssistiveAccess();
             hookFloatWindowEvents();
             hookLaunchMenuEvents();
             initTheme();
@@ -7908,6 +7909,44 @@
             });
         }
 
+        /*
+            Assistive access (System Settings > Desktop & Themes > Assistive Access)
+
+            Readable window titles: a body class that ao.css keys the title
+            glow on. Off unless the user turned it on. The settings page calls
+            setAssistiveTitles directly when it runs inside this desktop, and
+            announces every write on localStorage so a desktop in another tab
+            follows too.
+        */
+        const ASSISTIVE_TITLES_PREF = "assistive-titles";
+
+        function setAssistiveTitles(enabled){
+            $("body").toggleClass("assistiveTitles", enabled === true);
+        }
+
+        function initAssistiveAccess(){
+            $.ajax({
+                url: "system/desktop/preference",
+                data: {preference: ASSISTIVE_TITLES_PREF},
+                method: "POST",
+                success: function(data){
+                    setAssistiveTitles(data === "true");
+                }
+            });
+
+            window.addEventListener("storage", function(e){
+                if (e.key !== "desktop/assistiveChanged" || !e.newValue){
+                    return;
+                }
+                try {
+                    let change = JSON.parse(e.newValue);
+                    if (change.key === ASSISTIVE_TITLES_PREF){
+                        setAssistiveTitles(change.value === "true");
+                    }
+                } catch (err) {}
+            });
+        }
+
         //Float Window context menu
         function getFocusedFloatWindowID(){
             var targetFloatWindowId = "";

+ 24 - 0
src/web/script/ao.css

@@ -253,4 +253,28 @@ body.darkTheme .ui.header .sub.header{
 
 .fwdragger {
     --text-outline-color: rgba(36, 36, 36, 0.75);
+}
+
+/*
+    Assistive access: readable window titles
+
+    Off by default; System Settings > Desktop & Themes > Assistive Access
+    puts assistiveTitles on the desktop body. A dark glow keeps the white
+    title readable over light wallpapers and pale theme colours.
+
+    The glow needs room inside the title's overflow clip, so the box gets
+    padding and moves back by the same amount: the text stays where it was
+    and is not cut earlier (box-sizing is border-box under Semantic UI).
+    Windows that asked for the white title bar keep their dark text.
+*/
+body.assistiveTitles .floatWindow:not(.white) .controls .title{
+    left:30.5px;
+    top:0px;
+    padding: 5px 10px;
+    max-width: calc(100% - 120px);
+}
+
+body.assistiveTitles .floatWindow:not(.white) .fwdragger {
+    --text-outline-color: rgba(36, 36, 36, 0.9);
+    text-shadow: 0 0 10px var(--text-outline-color), 0px 0px 4px var(--text-outline-color), 0px 0px 2px var(--text-outline-color);
 }