-
-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UITheme #1897
UITheme #1897
Conversation
Known Issues When you change theme occurs cache invalidation by change its value. Maybe this solution is hack. |
This is all great. |
You can add more commits for the icons .dark if you feel like it. I will look at it tomorrow if not |
i used this code to convert icons to dark mode static void CreateDarkIcon(string source)
{
Bitmap image = (Bitmap) Image.FromFile(source);
CreateBitmap(
image,
Color.FromArgb(235, 235, 235),
Path.Combine(Path.GetDirectoryName(source), Path.ChangeExtension(source, ".dark.png")));
}
static void CreateBitmap(Bitmap source, Color color, string target)
{
Bitmap output = new(source);
for (int x = 0; x < source.Width; x++)
{
for (int y = 0; y < source.Height; y++)
{
Color pixel = source.GetPixel(x, y);
output.SetPixel(x, y,
pixel.A == 0
? pixel
: Color.FromArgb(pixel.A, color.R, color.G, color.B));
}
}
output.Save(target);
} |
All good @dosymep, great work! |
📦 New work-in-progress (wip) builds are available for 4.8.14.23233+0830-wip |
Added a Setter and docstrings to get and set methods with #1898 |
📦 New work-in-progress (wip) builds are available for 4.8.14.23233+1102-wip |
📦 New work-in-progress (wip) builds are available for 4.8.14.23233+1605-wip |
📦 New work-in-progress (wip) builds are available for 4.8.14.23293+0837-wip |
📦 New work-in-progress (wip) builds are available for 4.8.14.23293+1010-wip |
📦 New work-in-progress (wip) builds are available for 4.8.14.23293+1303-wip |
📦 New work-in-progress (wip) builds are available for 4.8.14.23295+2104-wip |
📦 New work-in-progress (wip) builds are available for 4.8.14.23295+2132-wip |
📦 New work-in-progress (wip) builds are available for 4.8.14.23296+0902-wip |
📦 New work-in-progress (wip) builds are available for 4.8.14.23299+1941-wip |
📦 New work-in-progress (wip) builds are available for 4.8.14.23304+0918-wip |
📦 New work-in-progress (wip) builds are available for 4.8.14.23310+1210-wip |
📦 New work-in-progress (wip) builds are available for 4.8.14.23313+1353-wip |
📦 New work-in-progress (wip) builds are available for 4.8.14.23313+1412-wip |
📦 New work-in-progress (wip) builds are available for 4.8.14.23313+2035-wip |
📦 New work-in-progress (wip) builds are available for 4.8.14.23313+2133-wip |
📦 New work-in-progress (wip) builds are available for 4.8.14.23326+1241-wip |
📦 New work-in-progress (wip) builds are available for 4.8.14.23326+2020-wip |
📦 New work-in-progress (wip) builds are available for 4.8.14.23327+1037-wip |
📦 New work-in-progress (wip) builds are available for 4.8.14.23328+0920-wip |
📦 New work-in-progress (wip) builds are available for 4.8.14.23335+1813-wip |
📦 New work-in-progress (wip) builds are available for 4.8.14.23338+0813-wip |
📦 New work-in-progress (wip) builds are available for 4.8.14.23340+1759-wip |
📦 New work-in-progress (wip) builds are available for 4.8.14.23346+0717-wip |
📦 New work-in-progress (wip) builds are available for 4.8.14.23352+1117-wip |
📦 New work-in-progress (wip) builds are available for 4.8.14.23352+1544-wip |
📦 New work-in-progress (wip) builds are available for 4.8.14.23353+1120-wip |
📦 New work-in-progress (wip) builds are available for 4.8.14.23353+1222-wip |
📦 New work-in-progress (wip) builds are available for 4.8.14.23354+0922-wip |
📦 New work-in-progress (wip) builds are available for 4.8.14.23354+1019-wip |
📦 New work-in-progress (wip) builds are available for 4.8.14.23354+1055-wip |
📦 New work-in-progress (wip) builds are available for 4.8.14.24012+1924-wip |
📦 New public release are available for 4.8.14.24016+1909 |
I have added theme support to ribbon icons. Issue #1834.