You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+13-4Lines changed: 13 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ I started making this so that me, or anyone really, can easily have a nice looki
4
4
Here's a preview of the latest update: (Order is: Light, ColourfulLight, Dark, ColourfulDark).
5
5

6
6
# Latest Updates (time is from bottom to top)
7
-
- Finally added a shadow to windows. Also added drop shadows to tooltips, context menus and menuitems.
7
+
- Finally added a shadow to windows. Also added drop shadows to tooltips, context menus and menuitems. These shadows however do introduct another thing... when resizing the window, a white border apears along the axis youre resizing in. It dissapears as soon as the window has fully re-drawn (aka after you stop resizing). idk how to fix this but tbh its not that big of a deal so it can just be ignored
8
8
- Had to change the slider to fix the orientations and the tick placements. they now no longer have the blue trail after them. although i could try and add it later
9
9
- Colourful Light/Dark theme has arrived! i find the Colourful light theme and original dark theme go well, but that's my opinion ;)
10
10
- Themed the titlebar! All of the buttons' functionality (close, minimize, autothing) automatically apply to any window.
@@ -15,10 +15,11 @@ Here's a preview of the latest update: (Order is: Light, ColourfulLight, Dark, C
15
15
- Added some colours to the light theme too (not sure why you'd want to use it but eh)
16
16
- And finally improved the RadioBoxes by giving them a more circular shape, like they normally have.
17
17
### Some smaller updates
18
+
- Removed the update from below because making the foreground white doesnt affect custom controls... stays black but the colours are lighter so the black looks okay with blue
18
19
- Improved colourful light theme by making the foreground of any blue surface white instead of black so that it stands out better.
19
20
# How to install/use
20
21
Firstly, in your WPF project, right click References in the solution explorer bit, add reference, goto Assemblies and double click/include PresentationFramework.Aero2. this allows the use of drop shadows and stuff.
21
-
Then, just drag and drop the theme(s) you want (located in the ThemesFolder folder btw) into your project (i'd recommend putting them inside a themes folder) and inside App.xaml place this: (and repalce DarkTheme with whatever theme you want, like LightTheme, ColourfulDarkTheme, etc)
22
+
Then, just drag and drop the theme(s) you want (located in the Themes folder folder btw) into your project (i'd recommend putting them inside a themes folder jus to be organised) and inside App.xaml place this: (and repalce DarkTheme with whatever theme you want, like LightTheme, ColourfulDarkTheme, etc)
22
23
```xml
23
24
<Application.Resources>
24
25
<ResourceDictionary>
@@ -28,6 +29,14 @@ Then, just drag and drop the theme(s) you want (located in the ThemesFolder fold
28
29
</ResourceDictionary>
29
30
</Application.Resources>
30
31
```
32
+
and then most things like buttons, listboxes, etc, will automatically be styled. Then to style windows...
33
+
# How to style windows
34
+
in your window xaml code (where you define height/width, etc), add
35
+
```xml
36
+
Style="{DynamicResource CustomWindowStyle}"
37
+
```
38
+
CustomWindowStyle styles the titlebar, buttons, etc.
39
+
there's also CustomToolWindowStyle which is the same as CustomWindowStyle but cant be resized, and MainWindowStyle which is the exact same as the default window but with a dark background
31
40
32
41
# How to style MenuItems properly
33
42
MenuItems are relatively challenging to auto-style, so they require just a tiny bit of effort to give them the correct theme. MenuItems use a POPUP thingy which is quite difficult to get to work sometimes. But i think i did okay tbh. However, the arrow thing doesn't auto show, so you have to account for that unfortunately. There are 2 templates: SingleDropDownMenuItem (for a menuitem that wont have children), and DropDownMenuItemStyle. the genuin only difference between the 2 is the little arrow that shows when a menuitem has children.
@@ -75,6 +84,6 @@ and for using add/close buttons, use this:
75
84
</TabItem>
76
85
</TabControl>
77
86
```
78
-
I should mention, i haven't yet adjusted the size (well, the height) of the CloseButtons template. so the TabItem will be bigger than normal, meaning the tabs will be bigger unfortunately. will fix soon
87
+
I should mention, i haven't yet adjusted the size (well, the height) of the CloseButtons template. so the TabItem will be bigger than normal, meaning the tabs will be bigger unfortunately. will fix soon. and also, it only closes the selected tabitems. not the one you click close on... unfortunately. will fix soon
79
88
## Other things
80
-
Also, if you absolutely need my consent to do stuff like edit/use this theme stuff, then you can edit this and publish this all you want :) would be nice if you credited me at this github link, but eh.
89
+
Also, if you absolutely need my consent to do stuff like edit/use this theme stuff, then you can edit this and publish this all you want :) would be nice if you credited me at this github link, but eh. i just make this stuff for fun, hense why its free lol
0 commit comments