mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
ux: selected style for repo dashboard contents
This commit is contained in:
parent
9844043c7f
commit
5370526fcc
3 changed files with 35 additions and 23 deletions
|
@ -191,9 +191,6 @@
|
||||||
<Setter Property="MaxWidth" Value="1024"/>
|
<Setter Property="MaxWidth" Value="1024"/>
|
||||||
<Setter Property="MaxHeight" Value="768"/>
|
<Setter Property="MaxHeight" Value="768"/>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style Selector="Grid.repository_leftpanel">
|
|
||||||
</Style>
|
|
||||||
|
|
||||||
<Style Selector="Path">
|
<Style Selector="Path">
|
||||||
<Setter Property="Fill" Value="{DynamicResource Brush.FG1}"/>
|
<Setter Property="Fill" Value="{DynamicResource Brush.FG1}"/>
|
||||||
|
@ -720,7 +717,6 @@
|
||||||
<Setter Property="Height" Value="24"/>
|
<Setter Property="Height" Value="24"/>
|
||||||
<Setter Property="Margin" Value="0"/>
|
<Setter Property="Margin" Value="0"/>
|
||||||
<Setter Property="Padding" Value="0"/>
|
<Setter Property="Padding" Value="0"/>
|
||||||
<Setter Property="CornerRadius" Value="4"/>
|
|
||||||
|
|
||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate>
|
<ControlTemplate>
|
||||||
|
@ -739,24 +735,24 @@
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Setter>
|
</Setter>
|
||||||
</Style>
|
</Style>
|
||||||
</Style>
|
|
||||||
|
|
||||||
<Style Selector="Grid.repository_leftpanel ListBox.repo_left_content_list ListBoxItem:pointerover /template/ Border#PART_Background">
|
<Style Selector="^ ListBoxItem:pointerover /template/ Border#PART_Background">
|
||||||
<Setter Property="Background" Value="{DynamicResource Brush.AccentHovered}" />
|
<Setter Property="Background" Value="{DynamicResource Brush.AccentHovered}" />
|
||||||
<Setter Property="Opacity" Value=".5"/>
|
<Setter Property="Opacity" Value=".5"/>
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="Grid.repository_leftpanel ListBox.repo_left_content_list ListBoxItem:selected /template/ Border#PART_Background">
|
<Style Selector="^ ListBoxItem:selected /template/ Border#PART_Background">
|
||||||
<Setter Property="Background" Value="{DynamicResource Brush.AccentHovered}" />
|
<Setter Property="Background" Value="{DynamicResource Brush.AccentHovered}" />
|
||||||
<Setter Property="Opacity" Value="1"/>
|
<Setter Property="Opacity" Value="1"/>
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="Grid.repository_leftpanel:focus-within ListBox.repo_left_content_list ListBoxItem:selected /template/ Border#PART_Background">
|
<Style Selector="^:focus-within ListBoxItem:selected /template/ Border#PART_Background">
|
||||||
<Setter Property="Background" Value="{DynamicResource Brush.Accent}" />
|
<Setter Property="Background" Value="{DynamicResource Brush.Accent}" />
|
||||||
<Setter Property="Opacity" Value=".65"/>
|
<Setter Property="Opacity" Value=".65"/>
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="Grid.repository_leftpanel:focus-within ListBox.repo_left_content_list ListBoxItem:selected:pointerover /template/ Border#PART_Background">
|
<Style Selector="^:focus-within ListBoxItem:selected:pointerover /template/ Border#PART_Background">
|
||||||
<Setter Property="Background" Value="{DynamicResource Brush.Accent}" />
|
<Setter Property="Background" Value="{DynamicResource Brush.Accent}" />
|
||||||
<Setter Property="Opacity" Value=".8"/>
|
<Setter Property="Opacity" Value=".8"/>
|
||||||
</Style>
|
</Style>
|
||||||
|
</Style>
|
||||||
|
|
||||||
<Style Selector="ContextMenu">
|
<Style Selector="ContextMenu">
|
||||||
<Setter Property="HorizontalOffset" Value="-4"/>
|
<Setter Property="HorizontalOffset" Value="-4"/>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<!-- Left Panel -->
|
<!-- Left Panel -->
|
||||||
<Grid Grid.Column="0" Classes="repository_leftpanel" RowDefinitions="Auto,*">
|
<Grid Grid.Column="0" RowDefinitions="Auto,*">
|
||||||
<!-- Page Switcher for Left Contents (Dashboard or CommitSearch) -->
|
<!-- Page Switcher for Left Contents (Dashboard or CommitSearch) -->
|
||||||
<Grid Grid.Row="0" Height="24" Margin="0,6" HorizontalAlignment="Center" ColumnDefinitions="48,1,48">
|
<Grid Grid.Row="0" Height="24" Margin="0,6" HorizontalAlignment="Center" ColumnDefinitions="48,1,48">
|
||||||
<Border Grid.Column="0" Grid.ColumnSpan="3"
|
<Border Grid.Column="0" Grid.ColumnSpan="3"
|
||||||
|
@ -251,6 +251,11 @@
|
||||||
DoubleTapped="OnDoubleTappedSubmodule"
|
DoubleTapped="OnDoubleTappedSubmodule"
|
||||||
PropertyChanged="OnLeftSidebarDataGridPropertyChanged"
|
PropertyChanged="OnLeftSidebarDataGridPropertyChanged"
|
||||||
IsVisible="{Binding IsSubmoduleGroupExpanded, Mode=OneWay}">
|
IsVisible="{Binding IsSubmoduleGroupExpanded, Mode=OneWay}">
|
||||||
|
<ListBox.Styles>
|
||||||
|
<Style Selector="ListBoxItem">
|
||||||
|
<Setter Property="CornerRadius" Value="4"/>
|
||||||
|
</Style>
|
||||||
|
</ListBox.Styles>
|
||||||
<ListBox.ItemTemplate>
|
<ListBox.ItemTemplate>
|
||||||
<DataTemplate DataType="m:Submodule">
|
<DataTemplate DataType="m:Submodule">
|
||||||
<Grid ColumnDefinitions="Auto,*,8">
|
<Grid ColumnDefinitions="Auto,*,8">
|
||||||
|
@ -301,6 +306,11 @@
|
||||||
DoubleTapped="OnDoubleTappedWorktree"
|
DoubleTapped="OnDoubleTappedWorktree"
|
||||||
PropertyChanged="OnLeftSidebarDataGridPropertyChanged"
|
PropertyChanged="OnLeftSidebarDataGridPropertyChanged"
|
||||||
IsVisible="{Binding IsWorktreeGroupExpanded, Mode=OneWay}">
|
IsVisible="{Binding IsWorktreeGroupExpanded, Mode=OneWay}">
|
||||||
|
<ListBox.Styles>
|
||||||
|
<Style Selector="ListBoxItem">
|
||||||
|
<Setter Property="CornerRadius" Value="4"/>
|
||||||
|
</Style>
|
||||||
|
</ListBox.Styles>
|
||||||
<ListBox.ItemTemplate>
|
<ListBox.ItemTemplate>
|
||||||
<DataTemplate DataType="m:Worktree">
|
<DataTemplate DataType="m:Worktree">
|
||||||
<Grid ColumnDefinitions="Auto,*,22">
|
<Grid ColumnDefinitions="Auto,*,22">
|
||||||
|
|
|
@ -7,7 +7,13 @@
|
||||||
xmlns:vm="using:SourceGit.ViewModels"
|
xmlns:vm="using:SourceGit.ViewModels"
|
||||||
xmlns:c="using:SourceGit.Converters"
|
xmlns:c="using:SourceGit.Converters"
|
||||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||||
x:Class="SourceGit.Views.TagsView">
|
x:Class="SourceGit.Views.TagsView">
|
||||||
|
<UserControl.Styles>
|
||||||
|
<Style Selector="ListBoxItem">
|
||||||
|
<Setter Property="CornerRadius" Value="4"/>
|
||||||
|
</Style>
|
||||||
|
</UserControl.Styles>
|
||||||
|
|
||||||
<UserControl.DataTemplates>
|
<UserControl.DataTemplates>
|
||||||
<DataTemplate DataType="vm:TagCollectionAsTree">
|
<DataTemplate DataType="vm:TagCollectionAsTree">
|
||||||
<ListBox Classes="repo_left_content_list"
|
<ListBox Classes="repo_left_content_list"
|
||||||
|
|
Loading…
Reference in a new issue