@@ -41,6 +41,12 @@ class DiscoDevBarService
4141 */
4242 private const DEFAULT_FONT_AWESOME_VERSION = '6.5.1 ' ;
4343
44+ /**
45+ * Default background colors for breathing stripes
46+ */
47+ private const DEFAULT_BG_COLOR_LIGHT = '#b71c1c ' ;
48+ private const DEFAULT_BG_COLOR_DARK = '#8e0000 ' ;
49+
4450 public function __construct (
4551 private readonly string $ projectDir
4652 ) {
@@ -63,7 +69,9 @@ public function getDiscoDevBarData(): DiscoDevBarData
6369 errorMessage: $ errorMessage ,
6470 version: $ version ,
6571 fontAwesomeEnabled: false ,
66- fontAwesomeVersion: self ::DEFAULT_FONT_AWESOME_VERSION
72+ fontAwesomeVersion: self ::DEFAULT_FONT_AWESOME_VERSION ,
73+ bgColorLight: self ::DEFAULT_BG_COLOR_LIGHT ,
74+ bgColorDark: self ::DEFAULT_BG_COLOR_DARK
6775 );
6876 }
6977
@@ -99,6 +107,9 @@ public function getDiscoDevBarData(): DiscoDevBarData
99107 $ leftWidgets = $ this ->loadWidgets (\is_array ($ left ) ? $ left : []);
100108 $ rightWidgets = $ this ->loadWidgets (\is_array ($ right ) ? $ right : []);
101109
110+ $ bgColorLight = $ config ['bg_color_light ' ] ?? self ::DEFAULT_BG_COLOR_LIGHT ;
111+ $ bgColorDark = $ config ['bg_color_dark ' ] ?? self ::DEFAULT_BG_COLOR_DARK ;
112+
102113 return new DiscoDevBarData (
103114 left: $ leftWidgets ,
104115 right: $ rightWidgets ,
@@ -108,7 +119,9 @@ public function getDiscoDevBarData(): DiscoDevBarData
108119 errorMessage: '' ,
109120 version: $ version ,
110121 fontAwesomeEnabled: \is_bool ($ fontAwesomeEnabled ) ? $ fontAwesomeEnabled : false ,
111- fontAwesomeVersion: $ fontAwesomeVersion
122+ fontAwesomeVersion: $ fontAwesomeVersion ,
123+ bgColorLight: \is_string ($ bgColorLight ) ? $ bgColorLight : self ::DEFAULT_BG_COLOR_LIGHT ,
124+ bgColorDark: \is_string ($ bgColorDark ) ? $ bgColorDark : self ::DEFAULT_BG_COLOR_DARK
112125 );
113126 }
114127
0 commit comments