Ver 2.0. Fixes and improvements.

This commit is contained in:
2017-08-27 13:05:14 +03:00
parent 9ec10b207b
commit b3f14b4637
52 changed files with 1092 additions and 647 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

BIN
docs/blue-theme.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 132 KiB

BIN
docs/darkblue-theme.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

BIN
docs/devlab-theme.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

View File

@@ -13,23 +13,22 @@
# Change themes by ThemeManager
Change by static property
Change by `ThemeManager`
```c#
ThemeManager.CurrentTheme = ColorThemes.Classic;
```
# Change themes by ResourceDictionary
Also you can change theme by adding resource dictionary after generic.xaml. Use one of them:
As default we use Classic theme.
You also can change theme by adding resource dictionary after generic.xaml. Use one of them:
```xml
<ResourceDictionary Source="/brightsharp;component/style.devlab.xaml" />
or
<ResourceDictionary Source="/brightsharp;component/style.blue.xaml" />
or
<ResourceDictionary Source="/brightsharp;component/style.darkblue.xaml" />
or
<ResourceDictionary Source="/brightsharp;component/style.silver.xaml" />
```
## NOTE
It is recommended use `Background="{DynamicResource WindowBackgroundBrush}"` for Window markup
You can use custom window style named `BrightSharpWindowStyle`.
Also defined additional useful styles and extensions. For more info see Demo source code.

View File

@@ -1,109 +1,5 @@
## Brushes List
![brushes](../BrushesList.png)
Here you can see set of brushes and colors we are use (Classic set). In demo application you can press `Brushes Explorer` button to see theme-specific brushes.
## List of names
AlternatingRowBackgroundBrush<br/>
BorderGapMaskConverter<br/>
ButtonEllipseFocusVisual<br/>
ButtonFocusVisual<br/>
CalendarButtonStyle<br/>
CalendarDayButtonStyle<br/>
CalendarItemStyle<br/>
CFocusVisual<br/>
ComboBoxFocusVisual<br/>
ComboBoxToggleButton<br/>
DarkBrush<br/>
DecoPasswordBoxContextMenu<br/>
DecoTextBoxContextMenu<br/>
DefaultedBorderBrush<br/>
DefaultRadiusNormal<br/>
DefaultRadiusSmall<br/>
DevLabFrameStyle<br/>
DisabledBackgroundBrush<br/>
DisabledBorderBrush<br/>
DisabledForegroundBrush<br/>
ExpandCollapseToggleStyle<br/>
ExpanderToggleButton<br/>
Expandr2StyleGroupBox<br/>
ExpandrStyleGroupBox<br/>
FileItemStyle<br/>
GlassButton<br/>
GlyphBrush<br/>
GridViewColumnHeaderGripper<br/>
HighLightForegroundBrush<br/>
HorizontalLightBrush<br/>
HorizontalNormalBorderBrush<br/>
HorizontalScrollBar<br/>
HorizontalSlider<br/>
JournalEntryUnifiedViewConverter<br/>
LightBorderBrush<br/>
LightBrush<br/>
LightColorBrush<br/>
MainMenuForegroundBrush<br/>
NormalBorderBrush<br/>
NormalBrush<br/>
NormalProgressBrush<br/>
OnWindowForegroundBrush<br/>
OptionMarkFocusVisualBottom<br/>
OptionMarkFocusVisualLeft<br/>
OptionMarkFocusVisualRight<br/>
OptionMarkFocusVisualTop<br/>
OptionRadioButtonStyle<br/>
PressedBorderBrush<br/>
PressedBrush<br/>
ProgressBarIndeterminateFillBrush<br/>
ProgressBarIndeterminateRootBrush<br/>
ProgressBarIndicatorAnimatedFill<br/>
RadioButtonFocusVisual<br/>
RoundedTabItemStyle<br/>
RowBackgroundBrush<br/>
ScrollBarBackgroundBrush<br/>
ScrollBarLineButton<br/>
ScrollBarPageButtonHoriz<br/>
ScrollBarPageButtonHorizBrush<br/>
ScrollBarPageButtonVert<br/>
ScrollBarPageButtonVertBrush<br/>
ScrollBarThumb<br/>
SelectedBackgroundBrush<br/>
SliderButtonStyle<br/>
SliderThumbStyle<br/>
SliderThumbStyleDirected<br/>
SliderThumbStyleDirectedHor<br/>
SolidBorderBrush<br/>
SubMenuItemRadioButtonTemplate<br/>
SwitchButtonFocusVisual<br/>
SwitchCheckBoxStyle<br/>
SynWindowBackgroundBrush<br/>
TabItemRadius<br/>
TabItemSelectedBackgroundBrush<br/>
TabRadiusBottom<br/>
TabRadiusLeft<br/>
TabRadiusRight<br/>
TabRadiusTop<br/>
TestWindowStyle<br/>
TextBoxBorder<br/>
ThickConv<br/>
TogglePressedBrush<br/>
TopLevelMenuBackgroundHover<br/>
UiForegroundBrush<br/>
VerticalDarkBrush<br/>
VerticalNormalBrush<br/>
VerticalPressedBrush<br/>
VerticalScrollBar<br/>
VerticalScrollBarThumb<br/>
VerticalSlider<br/>
WindowBackgroundBrush<br/>
WindowSolidBrush<br/>
ControlDarkColor<br/>
ControlLightColor<br/>
ControlMediumColor<br/>
ControlMouseOverColor<br/>
ControlPressedColor<br/>
OnWindowForegroundColor<br/>
SelectedBackgroundColor<br/>
SelectedUnfocusedColor<br/>
UiForegroundColor<br/>
ValidationErrorColor<br/>
WindowBackgroundHoverColor<br/>
![Brushes list](../BrushesList.png)

View File

@@ -1,6 +1,6 @@
# CKEditor (HtmlEditor) usage example
Documentation in progress...
Extra package contains first experimental HtmlEditor
For more info see `BrightSharp.Demo` project. How to setup video https://youtu.be/fQvdY69fQDw

BIN
docs/silver-theme.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB