Skip to content

Commit 496f31f

Browse files
author
Aytackydln
committed
fix backglow key styles having black color covering images
1 parent c4c5321 commit 496f31f

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

Project-Aurora/Project-Aurora/Settings/Controls/Keycaps/Control_DefaultKeycapBackglow.xaml.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,16 @@ public Control_DefaultKeycapBackglow(KeyboardKey key, string imagePath) : base(k
7272

7373
protected override void DrawColor(Color keyColor)
7474
{
75-
if (!_isImage)
76-
{
77-
KeyCap.Foreground = new SolidColorBrush(keyColor);
78-
GridBackglow.Background = new SolidColorBrush(keyColor);
79-
}
80-
else
75+
if (_isImage)
8176
{
8277
if (AssociatedKey != DeviceKeys.NONE)
8378
SetGlowColor(keyColor);
79+
return;
8480
}
8581

82+
KeyCap.Foreground = new SolidColorBrush(keyColor);
83+
GridBackglow.Background = new SolidColorBrush(keyColor);
84+
8685
if (KeyBorder.IsEnabled)
8786
{
8887
SetGlowColor(!_isImage ? Color.FromArgb(255, 30, 30, 30) : keyColor);

Project-Aurora/Project-Aurora/Settings/Controls/Keycaps/Control_DefaultKeycapBackglowOnly.xaml.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ protected override void DrawColor(Color keyColor)
8484
{
8585
if(!_isImage)
8686
KeyBorder.Background = new SolidColorBrush(Color.FromArgb(255, 30, 30, 30));
87-
else
88-
KeyBorder.Background = new SolidColorBrush(keyColor);
8987
}
9088
else
9189
{

0 commit comments

Comments
 (0)