Custom theme (from Blend 2015) problem with rendering and colors in Noesis.
Posted: 26 Mar 2018, 21:48
I want test my theme created with Blend 2015, after some fails finally I load everything and it looks same as from Blend. But not 100%.
In Blend everything looks same as from vector graphic editor, which I use for create graphics. Noesis render everything little bigger . Like there is some thikness added for everything. For example I have gaps with 1px which Blend render it, but in Noesis there are no gaps. (btw I use completly vector graphic). And I discover when I turn off antialiasing, the thikness is gone and everything have right size. But I am not sure if then graphic is antialiased or not, or if it is GLFW responsibility? And maybe good to mention I use GLFW not AppFramework.
Another problem is, when mouse is over buttons, it don't change to desired color. All colors are set up to black. I use colors from main theme, not from xaml file with buttons. Here is my theme structure file: (btw. buttons from main theme are completly ok, if mouse is over, except graphic thikness as I described above)
In Blend everything looks same as from vector graphic editor, which I use for create graphics. Noesis render everything little bigger . Like there is some thikness added for everything. For example I have gaps with 1px which Blend render it, but in Noesis there are no gaps. (btw I use completly vector graphic). And I discover when I turn off antialiasing, the thikness is gone and everything have right size. But I am not sure if then graphic is antialiased or not, or if it is GLFW responsibility? And maybe good to mention I use GLFW not AppFramework.
Another problem is, when mouse is over buttons, it don't change to desired color. All colors are set up to black. I use colors from main theme, not from xaml file with buttons. Here is my theme structure file: (btw. buttons from main theme are completly ok, if mouse is over, except graphic thikness as I described above)
Code: Select all
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Zalohovaci_Program_GUI_2"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
>
<!-- MergedDictionaries is copied from App.xaml in to DarkFlatTheme.xaml -->
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="DakFlatT_button_tg_select.xaml"/>
<ResourceDictionary Source="DarkFlatT_button_add.xaml"/>
<ResourceDictionary Source="DarkFlatT_button_delete.xaml"/>
<!-- and lot of other buttons etc.. -->
</ResourceDictionary.MergedDictionaries>
<Color x:Key="White">White</Color>
<Color x:Key="Grey_Light_Dark">#FF999999</Color>
<Color x:Key="Grey_Dark_Light">#FF323232</Color>
<Color x:Key="Grey_Dark_Mz">#FF1F1F1F</Color>
<!-- Colors ... -->
<Style x:Key="button_window_close" TargetType="{x:Type Button}">
<!-- Lot of Code an this button colors is ok if mouse is over -->
</Style>
</ResourceDictionary>