Skip to content

Commit e69f691

Browse files
2 parents 9d63416 + b2aeef2 commit e69f691

File tree

2 files changed

+34
-4
lines changed

2 files changed

+34
-4
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 REghZy
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

readme.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ I started making this so that me, or anyone really, can easily have a nice looki
44
Here's a preview of the latest update: (Order is: Light, ColourfulLight, Dark, ColourfulDark).
55
![](newPreview.png)
66
# 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
88
- 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
99
- Colourful Light/Dark theme has arrived! i find the Colourful light theme and original dark theme go well, but that's my opinion ;)
1010
- 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
1515
- Added some colours to the light theme too (not sure why you'd want to use it but eh)
1616
- And finally improved the RadioBoxes by giving them a more circular shape, like they normally have.
1717
### 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
1819
- Improved colourful light theme by making the foreground of any blue surface white instead of black so that it stands out better.
1920
# How to install/use
2021
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)
2223
```xml
2324
<Application.Resources>
2425
<ResourceDictionary>
@@ -28,6 +29,14 @@ Then, just drag and drop the theme(s) you want (located in the ThemesFolder fold
2829
</ResourceDictionary>
2930
</Application.Resources>
3031
```
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
3140

3241
# How to style MenuItems properly
3342
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:
7584
</TabItem>
7685
</TabControl>
7786
```
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
7988
## 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

Comments
 (0)