Skip to content

Commit

Permalink
Merge pull request #358 from jibedoubleve/issue/357
Browse files Browse the repository at this point in the history
Issue/357
  • Loading branch information
jibedoubleve authored Nov 1, 2023
2 parents 503e960 + 0673d4f commit 11e34b5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 30 deletions.
57 changes: 29 additions & 28 deletions src/Lanceur/Views/KeywordsView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,31 +96,13 @@
</Button>
</Grid>
</Grid>
<Border
Grid.Column="1"
Margin="0"
Padding="0"
BorderBrush="{StaticResource DialogBorderBrush}"
Visibility="{Binding SelectedItem, ElementName=Aliases, Converter={StaticResource NullToVisibilityConverter}}">
<DockPanel>
<StackPanel
HorizontalAlignment="Right"
DockPanel.Dock="Bottom"
Orientation="Horizontal">
<Button
x:Name="BtnSaveOrUpdateAlias"
Width="{StaticResource SettingsButtonWidth}"
Margin="{StaticResource SettingsButtonMargin}"
Style="{StaticResource AccentButtonStyle}">
Save or update
</Button>
<Button
x:Name="BtnDeleteAlias"
Width="{StaticResource SettingsButtonWidth}"
Margin="{StaticResource SettingsButtonMargin}">
Delete
</Button>
</StackPanel>

<Grid Grid.Column="1" Visibility="{Binding SelectedItem, ElementName=Aliases, Converter={StaticResource NullToVisibilityConverter}}">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<ScrollViewer>
<StackPanel Margin="15">
<HeaderedContentControl Header="Names (separate with coma)">
<StackPanel>
Expand Down Expand Up @@ -215,7 +197,7 @@
</Hyperlink>
</TextBlock>
</HeaderedContentControl>
<HeaderedContentControl Header="Parameters">
<HeaderedContentControl Header="Additional arguments">
<DataGrid
AreRowDetailsFrozen="True"
AutoGenerateColumns="False"
Expand All @@ -237,8 +219,27 @@
</DataGrid>
</HeaderedContentControl>
</StackPanel>
</DockPanel>
</Border>
</ScrollViewer>
<StackPanel
Grid.Row="1"
HorizontalAlignment="Right"
DockPanel.Dock="Bottom"
Orientation="Horizontal">
<Button
x:Name="BtnSaveOrUpdateAlias"
Width="{StaticResource SettingsButtonWidth}"
Margin="{StaticResource SettingsButtonMargin}"
Style="{StaticResource AccentButtonStyle}">
Save or update
</Button>
<Button
x:Name="BtnDeleteAlias"
Width="{StaticResource SettingsButtonWidth}"
Margin="{StaticResource SettingsButtonMargin}">
Delete
</Button>
</StackPanel>
</Grid>
</Grid>
</Grid>
</rxui:ReactiveUserControl>
4 changes: 2 additions & 2 deletions src/Lanceur/Views/SettingsView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
xmlns:vm="clr-namespace:Lanceur.Views"
x:Name="_self"
Title="Lanceur"
Width="1024"
Height="768"
Width="1280"
Height="960"
ui:WindowHelper.UseModernWindowStyle="True"
x:TypeArguments="vm:SettingsViewModel"
AllowDrop="True"
Expand Down

0 comments on commit 11e34b5

Please sign in to comment.