Skip to content

Commit

Permalink
プロパティの表示を修正 (MediaSource, TimeSpanEditor)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuto-trd committed Aug 31, 2023
1 parent 5b479d2 commit 6d92360
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 20 deletions.
19 changes: 14 additions & 5 deletions src/Beutl/Views/Editors/ImageSourceEditor.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,28 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="using:FluentAvalonia.UI.Controls"
xmlns:vm="using:Beutl.ViewModels.Editors"
Margin="4,0"
d:DesignWidth="300"
x:CompileBindings="True"
x:DataType="vm:ImageSourceEditorViewModel"
mc:Ignorable="d">
<Grid ColumnDefinitions="2*,3*,Auto">
<TextBlock Margin="8,0,0,0"
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="150" SharedSizeGroup="TextBox_SizeGroup" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBlock Margin="4,0,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Text="{Binding Header}" />

<GridSplitter Grid.Column="1" Background="Transparent" />


<Button x:Name="button"
Grid.Column="1"
Grid.Column="2"
Margin="4"
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Stretch"
Expand All @@ -34,7 +44,6 @@
</Grid>
</Button>


<local:PropertyEditorMenu Grid.Column="2" />
<local:PropertyEditorMenu Grid.Column="3" />
</Grid>
</UserControl>
19 changes: 14 additions & 5 deletions src/Beutl/Views/Editors/SoundSourceEditor.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,28 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="using:FluentAvalonia.UI.Controls"
xmlns:vm="using:Beutl.ViewModels.Editors"
Margin="4,0"
d:DesignWidth="300"
x:CompileBindings="True"
x:DataType="vm:SoundSourceEditorViewModel"
mc:Ignorable="d">
<Grid ColumnDefinitions="2*,3*,Auto">
<TextBlock Margin="8,0,0,0"
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="150" SharedSizeGroup="TextBox_SizeGroup" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBlock Margin="4,0,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Text="{Binding Header}" />

<GridSplitter Grid.Column="1" Background="Transparent" />


<Button x:Name="button"
Grid.Column="1"
Grid.Column="2"
Margin="4"
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Stretch"
Expand All @@ -34,7 +44,6 @@
</Grid>
</Button>


<local:PropertyEditorMenu Grid.Column="2" />
<local:PropertyEditorMenu Grid.Column="3" />
</Grid>
</UserControl>
24 changes: 19 additions & 5 deletions src/Beutl/Views/Editors/TimeSpanEditor.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,32 @@
xmlns:local="using:Beutl.Views.Editors"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:vm="using:Beutl.ViewModels.Editors"
Margin="4,0"
d:DesignWidth="300"
x:CompileBindings="True"
x:DataType="vm:TimeSpanEditorViewModel"
mc:Ignorable="d">
<Grid ColumnDefinitions="2*,3*,Auto">
<TextBlock Margin="8,0,0,0"
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="150" SharedSizeGroup="TextBox_SizeGroup" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>

<TextBlock Margin="4,0,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Text="{Binding Header}" />
ClipToBounds="False"
Text="{Binding Header}"
TextTrimming="CharacterEllipsis" />

<GridSplitter Grid.Column="1" Background="Transparent" />

<TextBox x:Name="textBox"
Grid.Column="1"
Grid.Column="2"
MinWidth="120"
Margin="4"
IsEnabled="{Binding CanEdit.Value}"
Text="{Binding Text.Value, Mode=OneWay}">
<TextBox.Styles>
Expand All @@ -29,6 +43,6 @@
</TextBox.Styles>
</TextBox>

<local:PropertyEditorMenu Grid.Column="2" />
<local:PropertyEditorMenu Grid.Column="3" />
</Grid>
</UserControl>
19 changes: 14 additions & 5 deletions src/Beutl/Views/Editors/VideoSourceEditor.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,28 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="using:FluentAvalonia.UI.Controls"
xmlns:vm="using:Beutl.ViewModels.Editors"
Margin="4,0"
d:DesignWidth="300"
x:CompileBindings="True"
x:DataType="vm:VideoSourceEditorViewModel"
mc:Ignorable="d">
<Grid ColumnDefinitions="2*,3*,Auto">
<TextBlock Margin="8,0,0,0"
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="150" SharedSizeGroup="TextBox_SizeGroup" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBlock Margin="4,0,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Text="{Binding Header}" />

<GridSplitter Grid.Column="1" Background="Transparent" />


<Button x:Name="button"
Grid.Column="1"
Grid.Column="2"
Margin="4"
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Stretch"
Expand All @@ -34,7 +44,6 @@
</Grid>
</Button>


<local:PropertyEditorMenu Grid.Column="2" />
<local:PropertyEditorMenu Grid.Column="3" />
</Grid>
</UserControl>

0 comments on commit 6d92360

Please sign in to comment.