[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#820911: Accessibility for visual impaired is broken,, High-Contrast Theme is no longer activated by shortcut



And here is a patch for grub-gencfg to add an entry to the EFI grub menu
with "theme=dark" for a graphical default install.


Holger

-- 
Holger Wansing <hwansing@mailbox.org>
PGP-Finterprint: 496A C6E8 1442 4B34 8508  3529 59F1 87CA 156E B076
diff --git a/build/util/grub-gencfg b/build/util/grub-gencfg
index aacce8285..837c51eb3 100755
--- a/build/util/grub-gencfg
+++ b/build/util/grub-gencfg
@@ -128,6 +128,7 @@ sub menuentry ($;%)
     $xattr{Auto} ||= 0;
     $xattr{Rescue} ||= 0;
     $xattr{Speech} ||= 0;
+    $xattr{Dark} ||= 0;
 
     $xattr{Quiet} = !$xattr{Expert} unless defined $xattr{Quiet};
 
@@ -152,6 +153,7 @@ sub menuentry ($;%)
     push @cmdline, @OPTS;
     push @cmdline, "rescue/enable=true" if $xattr{Rescue};
     push @cmdline, "speakup.synth=soft" if $xattr{Speech};
+    push @cmdline, "theme=dark" if $xattr{Dark};
     push @cmdline, "---";
     push @cmdline, "quiet" if $xattr{Quiet};
 
@@ -193,6 +195,7 @@ start_submenu("Advanced options ...", Hotkey => 'a'); {
     menuentry("... Expert install with speech synthesis", Expert => 1, Speech => 1, Hotkey => 'x');
     menuentry("... Rescue mode with speech synthesis", Rescue => 1, Speech => 1, Hotkey => 'r');
     menuentry("... Automated install with speech synthesis", Auto => 1, Speech => 1, Hotkey => 'a');
+    menuentry("... Graphical install with dark theme for visual impaired", Graphical => 1, Dark => 1, Hotkey => 'v');
 
     start_submenu("... Desktop environment menu ..."); {
 

Reply to: