fix(desktop): Dateidialog folgt dem Dunkelmodus (GTK prefer-dark via set_theme)
Tessera CI/CD / Lint & Type Check (push) Successful in 1m0s
Tessera CI/CD / Tests (push) Successful in 1m49s
Tessera CI/CD / Desktop-Pakete bauen (push) Successful in 15m0s
Tessera CI/CD / Build & Publish Images (push) Successful in 3m33s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-10-02 23:31:26 +02:00
parent 9829228726
commit fffb7ffbec
4 changed files with 108 additions and 2 deletions
+11 -2
View File
@@ -385,10 +385,18 @@ fn server_host(url: Option<&str>) -> Option<String> {
/// `is_permission_granted.toml`, `request_permission.toml`). Eine unbekannte
/// Kennung wuerde in `add_capability` ebenfalls in einen Panic laufen; darum
/// pinnt ein Test die exakte Menge samt Reihenfolge.
const SERVER_NOTIFICATION_PERMISSIONS: [&str; 3] = [
///
/// Dazu `core:window:allow-set-theme` (quick-261002, Dunkelmodus): die
/// Web-Oberflaeche meldet ihr helles/dunkles Erscheinungsbild an das Fenster.
/// Unter Linux setzt tao damit `gtk-application-prefer-dark-theme`, sodass
/// der GTK-Dateidialog eines `<input type="file">` dem Dunkelmodus folgt;
/// unter Windows folgt die Titelleiste. Erlaubt nur `set_theme`, keine
/// anderen Fensterbefehle.
const SERVER_NOTIFICATION_PERMISSIONS: [&str; 4] = [
"notification:allow-notify",
"notification:allow-is-permission-granted",
"notification:allow-request-permission",
"core:window:allow-set-theme",
];
/// Bereits berechtigte Herkunfts-Muster. `add_capability` haengt bei jedem
@@ -1859,7 +1867,7 @@ mod tests {
}
#[test]
fn server_origin_berechtigungen_sind_genau_diese_drei() {
fn server_origin_berechtigungen_sind_genau_diese_vier() {
// Pinnt die Menge (T-IF2-03): ein zusaetzliches `notification:default`
// oder eine Platzhalter-Berechtigung laesst den Test rot werden.
assert_eq!(
@@ -1868,6 +1876,7 @@ mod tests {
"notification:allow-notify",
"notification:allow-is-permission-granted",
"notification:allow-request-permission",
"core:window:allow-set-theme",
]
);
}