Skip to content

Commit

Permalink
Improve sizes of elements in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
danielchalmers committed Jul 17, 2024
1 parent 114cba7 commit 1375652
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion DesktopClock/SettingsWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,25 @@
ResizeMode="CanMinimize"
SizeToContent="Height"
WindowStartupLocation="CenterScreen">
<Window.Resources>
<Style TargetType="Button">
<Setter Property="Padding" Value="4,0"/>
</Style>

<Style TargetType="TextBox">
<Setter Property="MinHeight" Value="23"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
</Style>
</Window.Resources>

<TabControl Padding="12,12,12,0" SelectedIndex="{Binding Settings.SettingsTabIndex, Mode=TwoWay}">
<TabItem Header="Format">
<StackPanel>
<TextBlock Text="Date and Time Format:" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="100" />
<ColumnDefinition Width="20" />
</Grid.ColumnDefinitions>
<TextBox Grid.Column="0" Text="{Binding Settings.Format, UpdateSourceTrigger=PropertyChanged}" />
<ComboBox Grid.Column="1"
Expand Down Expand Up @@ -50,6 +61,7 @@
<TextBox Text="{Binding Settings.CountdownTo, Mode=TwoWay}" Grid.Column="0" />
<Button Content="Reset"
Command="{Binding ResetCountdownCommand}"
Padding="4,0,4,0"
Grid.Column="1" />
</Grid>
<TextBlock Text="Date and time to countdown to. If left blank, countdown mode is not enabled."
Expand Down Expand Up @@ -125,6 +137,7 @@
<TextBox Text="{Binding Settings.BackgroundImagePath, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Grid.Column="0" />
<Button Content="Browse..."
Click="BrowseBackgroundImagePath"
Padding="4,0,4,0"
Grid.Column="1" />
</Grid>
<TextBlock Text="Path to the background image. If left blank, a solid color will be used."
Expand Down Expand Up @@ -184,6 +197,7 @@
<TextBox Text="{Binding Settings.WavFilePath, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Grid.Column="0" />
<Button Content="Browse..."
Click="BrowseWavFilePath"
Padding="4,0,4,0"
Grid.Column="1" />
</Grid>
<TextBlock Text="Path to a WAV file to be played on a specified interval."
Expand Down

0 comments on commit 1375652

Please sign in to comment.