fix(desktop): Dateidialog folgt dem Dunkelmodus (GTK prefer-dark via set_theme)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -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",
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user