File tree Expand file tree Collapse file tree 3 files changed +18
-10
lines changed Expand file tree Collapse file tree 3 files changed +18
-10
lines changed Original file line number Diff line number Diff line change 11
11
title-text: ""
12
12
# desktop-image: "background.png"
13
13
desktop-color: "#263238"
14
- terminal-font: "Unifont Regular 16"
14
+ terminal-font: "default" # a random name to let the default font for the console
15
15
terminal-box: "terminal_box_*.png"
16
16
terminal-left: "0"
17
17
terminal-top: "0"
@@ -25,9 +25,9 @@ terminal-border: "0"
25
25
top = 29%
26
26
width = 28%
27
27
height = 60%
28
- item_font = "GoogleSans Regular 32"
29
- item_color = "#cccccc "
30
- selected_item_color = "#E91E63 "
28
+ item_font = "Google Sans Regular 32"
29
+ item_color = "#ffffff "
30
+ selected_item_color = "#e91e63 "
31
31
icon_width = 72
32
32
icon_height = 72
33
33
item_height = 72
@@ -43,6 +43,6 @@ terminal-border: "0"
43
43
align = "center"
44
44
id = "__timeout__"
45
45
text = "Booting in %d seconds"
46
- color = "#cccccc "
47
- font = "GoogleSans Regular 32"
46
+ color = "#ffffff "
47
+ font = "Google Sans Regular 32"
48
48
}
Original file line number Diff line number Diff line change @@ -33,16 +33,19 @@ BEGIN_THEME_OVERRIDES = "{BEGIN_THEME_OVERRIDES}"
33
33
END_THEME_OVERRIDES = "{END_THEME_OVERRIDES}"
34
34
SETICONS_CALL = "{SETICONS_CALL}"
35
35
36
-
36
+ cyan = "\033 [36m"
37
+ pink = "\033 [38;5;206m"
38
+ endcolor = "\033 [0m"
37
39
def info (msg ):
38
40
# info with cyan [I]
39
- print (f"\033 [36m[I] \033 [0m {{msg}}" , file = stderr )
41
+ print (f"{{cyan}}[I]{{endcolor}} {{msg}}" , file = stderr )
40
42
41
43
42
44
def sh (command ):
43
45
"Executes command in shell and returns its exit status"
44
46
return run (command , shell = True ).returncode
45
47
48
+ info (f"{{pink}}[Matter]{{endcolor}} Setting entry icons" )
46
49
47
50
with open (GRUB_MKCONFIG_PATH , "r" , newline = "" ) as f :
48
51
grub_mkconfig = f .read ()
Original file line number Diff line number Diff line change 26
26
def color_string (string , fg = None ):
27
27
COLORS = { # List some colors that may be needed
28
28
"red" : "\033 [31m" ,
29
+ "pink" : "\033 [38;5;206m" ,
29
30
"green" : "\033 [32m" ,
30
31
"orange" : "\033 [33m" ,
31
32
"blue" : "\033 [34m" ,
@@ -35,6 +36,8 @@ def color_string(string, fg=None):
35
36
"yellow" : "\033 [93m" ,
36
37
"lightblue" : "\033 [94m" ,
37
38
"lightcyan" : "\033 [96m" ,
39
+ "brightwhite" : "\u001b [37;1m" ,
40
+ "brightmagenta" : "\u001b [35;1m" ,
38
41
}
39
42
endcolor = "\033 [0m"
40
43
return f"{ COLORS .get (fg , '' )} { string } { endcolor } "
@@ -478,8 +481,10 @@ def get_entry_names(grub_cfg):
478
481
479
482
def do_preinstall_hint ():
480
483
info (
481
- f"[{ color_string (THEME_NAME .upper (), fg = 'pink' )} "
482
- f"{ color_string ('Grub Theme' .upper (), fg = 'orange' )} ]"
484
+ f"{ color_string ('[ ' , fg = 'brightwhite' )} "
485
+ f"{ color_string (THEME_NAME , fg = 'brightmagenta' )} "
486
+ f"{ color_string ('Grub Theme' .upper (), fg = 'lightcyan' )} "
487
+ f"{ color_string (' ]' , fg = 'brightwhite' )} "
483
488
)
484
489
info ("Argument -i required. Which icons go to which grub entries?." )
485
490
info ("Your grub entries are:" )
You can’t perform that action at this time.
0 commit comments