Skip to content

Commit 43330db

Browse files
committed
Add InfoBar Control
1 parent 9486355 commit 43330db

File tree

3 files changed

+52
-5
lines changed

3 files changed

+52
-5
lines changed

Flow.Launcher/Resources/Dark.xaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,20 @@
114114
<SolidColorBrush x:Key="CustomExpanderHover" Color="#323232" />
115115
<!-- Resource for ContentDialog -->
116116
<SolidColorBrush x:Key="ContentDialogOverlayBG" Color="#4D000000" />
117-
<!-- Infobar Warning -->
118-
<SolidColorBrush x:Key="InfoBarWarningIcon" Color="#FCE100" />
119-
<SolidColorBrush x:Key="InfoBarWarningBG" Color="#433519" />
117+
118+
<!-- DIY Infobar -->
120119
<SolidColorBrush x:Key="InfoBarBD" Color="#19000000" />
120+
<SolidColorBrush
121+
x:Key="InfoBarInfoIcon"
122+
Opacity="0.9"
123+
Color="{m:DynamicColor SystemAccentColor}" />
124+
<SolidColorBrush x:Key="InfoBarInfoBG" Color="#272727" />
125+
<SolidColorBrush x:Key="InfoBarWarningIcon" Color="#fce100" />
126+
<SolidColorBrush x:Key="InfoBarWarningBG" Color="#433519" />
127+
<SolidColorBrush x:Key="InfoBarSuccessIcon" Color="#6ccb5f" />
128+
<SolidColorBrush x:Key="InfoBarSuccessBG" Color="#393d1b" />
129+
<SolidColorBrush x:Key="InfoBarErrorIcon" Color="#ff99a4" />
130+
<SolidColorBrush x:Key="InfoBarErrorBG" Color="#442726" />
121131

122132
<SolidColorBrush x:Key="MouseOverWindowCloseButtonForegroundBrush" Color="#ffffff" />
123133

Flow.Launcher/Resources/Light.xaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,20 @@
105105
<SolidColorBrush x:Key="CustomExpanderHover" Color="#f6f6f6" />
106106
<!-- Resource for ContentDialog -->
107107
<SolidColorBrush x:Key="ContentDialogOverlayBG" Color="#4D000000" />
108-
<!-- Infobar Warning -->
108+
109+
<!-- DIY Infobar -->
110+
<SolidColorBrush x:Key="InfoBarBD" Color="#0F000000" />
111+
<SolidColorBrush
112+
x:Key="InfoBarInfoIcon"
113+
Opacity="0.8"
114+
Color="{m:DynamicColor SystemAccentColor}" />
115+
<SolidColorBrush x:Key="InfoBarInfoBG" Color="{m:DynamicColor Color01}" />
109116
<SolidColorBrush x:Key="InfoBarWarningIcon" Color="#9D5D00" />
110117
<SolidColorBrush x:Key="InfoBarWarningBG" Color="#FFF4CE" />
111-
<SolidColorBrush x:Key="InfoBarBD" Color="#0F000000" />
118+
<SolidColorBrush x:Key="InfoBarSuccessIcon" Color="#3f973e" />
119+
<SolidColorBrush x:Key="InfoBarSuccessBG" Color="#dff6dd" />
120+
<SolidColorBrush x:Key="InfoBarErrorIcon" Color="#c42b1c" />
121+
<SolidColorBrush x:Key="InfoBarErrorBG" Color="#fde7e9" />
112122

113123
<SolidColorBrush x:Key="MouseOverWindowCloseButtonForegroundBrush" Color="#ffffff" />
114124

Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,33 @@
2828
Style="{StaticResource PageTitle}"
2929
Text="{DynamicResource general}"
3030
TextAlignment="left" />
31+
<cc:InfoBar
32+
Title="Test"
33+
Closable="False"
34+
IsIconVisible="True"
35+
Length="Long"
36+
Message="This is a success message."
37+
Type="Info" />
38+
<cc:InfoBar
39+
Closable="True"
40+
IsIconVisible="True"
41+
Length="Long"
42+
Message="This is a success message."
43+
Type="Success" />
44+
<cc:InfoBar
45+
Title="Test"
46+
Closable="False"
47+
IsIconVisible="True"
48+
Length="Long"
49+
Message="This is a success message."
50+
Type="Warning" />
51+
<cc:InfoBar
52+
Title="Test"
53+
Closable="False"
54+
IsIconVisible="True"
55+
Length="Short"
56+
Message="This is a success message."
57+
Type="Error" />
3158
<cc:ExCard
3259
Title="{DynamicResource startFlowLauncherOnSystemStartup}"
3360
Margin="0 8 0 0"

0 commit comments

Comments
 (0)