Skip to content

Commit

Permalink
styl
Browse files Browse the repository at this point in the history
  • Loading branch information
martinrotter committed Sep 30, 2024
1 parent 9c26fc3 commit a9b36cc
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ZZZO/ZZZO/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<materialDesign:BundledTheme BaseTheme="Inherit"
PrimaryColor="DeepPurple"
<materialDesign:CustomColorTheme BaseTheme="Inherit"
PrimaryColor="BlueViolet"
SecondaryColor="Lime" />
<ResourceDictionary
Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesign3.Defaults.xaml" />
Expand Down
4 changes: 4 additions & 0 deletions ZZZO/ZZZO/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Globalization;
using System.Windows;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using CefSharp;
using CefSharp.Wpf;
Expand Down Expand Up @@ -152,6 +153,9 @@ public void AdjustThemeContrastAndColors(Color primary = default, Color secondar
DesiredContrastRatio = 2.0f
};

// Vynutíme barvu pozadí.
b.Background = new ColorReference(ThemeColorReference.None, Colors.White);

a.SetTheme(b);
}

Expand Down
5 changes: 4 additions & 1 deletion ZZZO/ZZZO/Controls/ProgramEntry.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
</ComboBox.ItemTemplate>
</ComboBox>
<TextBox materialDesign:HintAssist.Hint="Nadpis bodu programu"
Height="75"
MinLines="2"
MaxLines="2"
TextWrapping="Wrap"
Visibility="{Binding ProgramEntry.JeEditovatelny, Converter={StaticResource BooleanToVisibilityConverter}}"
Text="{Binding ProgramEntry.Nadpis, UpdateSourceTrigger=PropertyChanged}" />
Expand All @@ -41,6 +42,8 @@
<GroupBox Header="Text bodu programu"
Visibility="{Binding ProgramEntry.JeEditovatelny, Converter={StaticResource BooleanToVisibilityConverter}}">
<local:TinyMceEditor Margin="-14 -14 0 0"
SnapsToDevicePixels="True"
UseLayoutRounding="True"
HtmlContent="{Binding ProgramEntry.Text, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Height="400" />
</GroupBox>
Expand Down
1 change: 1 addition & 0 deletions ZZZO/ZZZO/Controls/Resolution.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<StackPanel Orientation="Vertical">
<TextBox materialDesign:HintAssist.Hint="Text usnesení"
MinLines="4"
MaxLines="4"
TextWrapping="Wrap"
AcceptsReturn="True"
IsEnabled="{Binding JeEditovatelne}"
Expand Down
4 changes: 1 addition & 3 deletions ZZZO/ZZZO/Windows/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:viewModels="clr-namespace:ZZZO.ViewModels"
d:DataContext="{d:DesignInstance Type=viewModels:MainWindowViewModel}"
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
Background="{DynamicResource MaterialDesignPaper}"
TextElement.FontWeight="Medium"
TextElement.FontSize="14"
FontFamily="{materialDesign:MaterialDesignFont}">
Style="{StaticResource MaterialDesignWindow}">

<materialDesign:DialogHost x:Name="DialogHost" KeyDown="OnDialogHostKeyDown">
<DockPanel>
Expand Down
3 changes: 3 additions & 0 deletions resources/styles/svésedlice.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,17 @@ h1, h2, h3, h4, h5, h6 {

.resolution-success-icon {
color: var(--success-color);
font-weight: bold;
}

.resolution-failure-icon {
color: var(--failure-color);
font-weight: bold;
}

.resolution-dontknow-icon {
color: var(--warning-color);
font-weight: bold;
}

.resolution-vote-box {
Expand Down

0 comments on commit a9b36cc

Please sign in to comment.