introduce theme files and handle in notification popup

This commit is contained in:
mshafer1
2024-12-21 09:39:43 -06:00
parent 7a5d067343
commit f187cd8ea6
4 changed files with 77 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
using System.Drawing;
namespace ntfysh_client.Themes
{
internal abstract class BaseTheme
{
public abstract Color BackgroundColor {get; }
public abstract Color ControlBackGroundColor {get; }
public abstract Color ControlMouseOverBackgroundColor { get; }
public abstract Color ForegroundColor { get; }
}
}

View File

@@ -0,0 +1,12 @@
using System.Drawing;
namespace ntfysh_client.Themes
{
internal class DarkModeTheme: BaseTheme
{
public override Color BackgroundColor { get => SystemColors.ControlDark; }
public override Color ControlBackGroundColor { get => Color.Black; }
public override Color ControlMouseOverBackgroundColor { get => Color.Silver; }
public override Color ForegroundColor { get => SystemColors.ControlLight; }
}
}

View File

@@ -0,0 +1,12 @@
using System.Drawing;
namespace ntfysh_client.Themes
{
internal class DefaultTheme: BaseTheme
{
public override Color BackgroundColor { get => Color.White; }
public override Color ControlBackGroundColor { get => SystemColors.ControlDark; }
public override Color ControlMouseOverBackgroundColor { get => Color.LightSkyBlue; }
public override Color ForegroundColor { get => SystemColors.WindowText; }
}
}