|
9 | 9 | mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" |
10 | 10 | x:Class="SourceGit.Views.LauncherPage" |
11 | 11 | x:DataType="vm:LauncherPage"> |
12 | | - <Grid RowDefinitions="36,*"> |
| 12 | + <Grid RowDefinitions="36,*" Background="{DynamicResource Brush.ToolBar}"> |
13 | 13 | <!-- ToolBar --> |
14 | 14 | <Border Grid.Row="0" |
15 | | - BorderBrush="{DynamicResource Brush.Border0}" |
16 | | - BorderThickness="0,0,0,1" |
17 | | - Background="{DynamicResource Brush.ToolBar}" |
| 15 | + Background="Transparent" |
18 | 16 | PointerPressed="OnToolBarPointerPressed"> |
19 | 17 | <ContentControl Content="{Binding Data}"> |
20 | 18 | <ContentControl.DataTemplates> |
|
34 | 32 | <ContentControl Content="{Binding Data}"> |
35 | 33 | <ContentControl.DataTemplates> |
36 | 34 | <DataTemplate DataType="vm:Welcome"> |
37 | | - <v:Welcome/> |
| 35 | + <Border Margin="4,0,4,4" |
| 36 | + CornerRadius="4" |
| 37 | + BorderThickness="1" |
| 38 | + BorderBrush="{DynamicResource Brush.Border0}" |
| 39 | + Background="{DynamicResource Brush.Window}"> |
| 40 | + <v:Welcome/> |
| 41 | + </Border> |
38 | 42 | </DataTemplate> |
39 | 43 |
|
40 | 44 | <DataTemplate DataType="vm:Repository"> |
|
59 | 63 |
|
60 | 64 | <Grid RowDefinitions="Auto,Auto,*" Width="560" HorizontalAlignment="Center"> |
61 | 65 | <!-- Popup --> |
62 | | - <Border Grid.Row="0" |
63 | | - Padding="6,0,6,6" |
64 | | - Background="Transparent" |
65 | | - Effect="drop-shadow(0 0 8 #8F000000)" |
66 | | - IsVisible="{Binding Popup, Converter={x:Static ObjectConverters.IsNotNull}}"> |
67 | | - <Border Background="{DynamicResource Brush.Popup}" |
68 | | - BorderThickness="1,0,1,1" BorderBrush="{DynamicResource Brush.PopupBorder}" |
69 | | - CornerRadius="0,0,8,8"> |
70 | | - <ContentControl x:Name="PopupPanel" Content="{Binding Popup}" KeyboardNavigation.TabNavigation="Cycle"> |
71 | | - <ContentControl.DataTemplates> |
72 | | - <DataTemplate DataType="vm:Popup"> |
73 | | - <StackPanel Orientation="Vertical"> |
74 | | - <!-- Popup Widget --> |
75 | | - <ContentControl Margin="8,16,8,8" |
76 | | - Content="{Binding}" |
77 | | - IsHitTestVisible="{Binding InProgress, Converter={x:Static BoolConverters.Not}}"> |
78 | | - <ContentControl.DataTemplates> |
79 | | - <v:PopupDataTemplates/> |
80 | | - </ContentControl.DataTemplates> |
81 | | - </ContentControl> |
| 66 | + <Grid Grid.Row="0" Margin="6,0,6,6"> |
| 67 | + <Border Background="Transparent" |
| 68 | + Effect="drop-shadow(0 0 8 #8F000000)" |
| 69 | + IsVisible="{Binding Popup, Converter={x:Static ObjectConverters.IsNotNull}}"> |
| 70 | + <Border Background="{DynamicResource Brush.Popup}" |
| 71 | + BorderThickness="1,0,1,1" BorderBrush="{DynamicResource Brush.PopupBorder}" |
| 72 | + CornerRadius="0,0,8,8"> |
| 73 | + <ContentControl x:Name="PopupPanel" Content="{Binding Popup}" KeyboardNavigation.TabNavigation="Cycle"> |
| 74 | + <ContentControl.DataTemplates> |
| 75 | + <DataTemplate DataType="vm:Popup"> |
| 76 | + <StackPanel Orientation="Vertical"> |
| 77 | + <!-- Popup Widget --> |
| 78 | + <ContentControl Margin="8,16,8,8" |
| 79 | + Content="{Binding}" |
| 80 | + IsHitTestVisible="{Binding InProgress, Converter={x:Static BoolConverters.Not}}"> |
| 81 | + <ContentControl.DataTemplates> |
| 82 | + <v:PopupDataTemplates/> |
| 83 | + </ContentControl.DataTemplates> |
| 84 | + </ContentControl> |
82 | 85 |
|
83 | | - <!-- Options --> |
84 | | - <StackPanel Margin="8,4,8,8" |
85 | | - Height="32" |
86 | | - Orientation="Horizontal" |
87 | | - HorizontalAlignment="Right" |
88 | | - IsVisible="{Binding InProgress, Converter={x:Static BoolConverters.Not}}"> |
89 | | - <Button Width="0" Height="0" |
90 | | - Click="OnPopupSureByHotKey" |
91 | | - HotKey="Enter" |
92 | | - Focusable="False"/> |
93 | | - <Button Classes="flat primary" |
94 | | - Width="100" Height="28" |
95 | | - Padding="0" |
96 | | - HorizontalContentAlignment="Center" |
97 | | - VerticalContentAlignment="Center" |
98 | | - Content="{DynamicResource Text.Sure}" |
99 | | - Click="OnPopupSure" |
100 | | - ToolTip.Tip="Enter"/> |
101 | | - <Button Classes="flat" |
102 | | - Width="100" Height="28" |
103 | | - Margin="8,0,0,0" |
104 | | - Padding="0" |
105 | | - HorizontalContentAlignment="Center" |
106 | | - VerticalContentAlignment="Center" |
107 | | - Content="{DynamicResource Text.Cancel}" |
108 | | - Click="OnPopupCancel" |
109 | | - ToolTip.Tip="ESC"/> |
110 | | - </StackPanel> |
| 86 | + <!-- Options --> |
| 87 | + <StackPanel Margin="8,4,8,8" |
| 88 | + Height="32" |
| 89 | + Orientation="Horizontal" |
| 90 | + HorizontalAlignment="Right" |
| 91 | + IsVisible="{Binding InProgress, Converter={x:Static BoolConverters.Not}}"> |
| 92 | + <Button Width="0" Height="0" |
| 93 | + Click="OnPopupSureByHotKey" |
| 94 | + HotKey="Enter" |
| 95 | + Focusable="False"/> |
| 96 | + <Button Classes="flat primary" |
| 97 | + Width="100" Height="28" |
| 98 | + Padding="0" |
| 99 | + HorizontalContentAlignment="Center" |
| 100 | + VerticalContentAlignment="Center" |
| 101 | + Content="{DynamicResource Text.Sure}" |
| 102 | + Click="OnPopupSure" |
| 103 | + ToolTip.Tip="Enter"/> |
| 104 | + <Button Classes="flat" |
| 105 | + Width="100" Height="28" |
| 106 | + Margin="8,0,0,0" |
| 107 | + Padding="0" |
| 108 | + HorizontalContentAlignment="Center" |
| 109 | + VerticalContentAlignment="Center" |
| 110 | + Content="{DynamicResource Text.Cancel}" |
| 111 | + Click="OnPopupCancel" |
| 112 | + ToolTip.Tip="ESC"/> |
| 113 | + </StackPanel> |
111 | 114 |
|
112 | | - <!-- Running --> |
113 | | - <v:PopupRunningStatus Margin="12,8" |
114 | | - Focusable="False" |
115 | | - Description="{Binding ProgressDescription}" |
116 | | - IsVisible="{Binding InProgress}" |
117 | | - IsHitTestVisible="False"/> |
| 115 | + <!-- Running --> |
| 116 | + <v:PopupRunningStatus Margin="12,8" |
| 117 | + Focusable="False" |
| 118 | + Description="{Binding ProgressDescription}" |
| 119 | + IsVisible="{Binding InProgress}" |
| 120 | + IsHitTestVisible="False"/> |
118 | 121 |
|
119 | | - <!-- Terminate --> |
120 | | - <Button Classes="flat" |
121 | | - Height="28" |
122 | | - Margin="0,0,0,8" Padding="16,0" |
123 | | - HorizontalAlignment="Center" |
124 | | - Content="{DynamicResource Text.Terminate}" |
125 | | - Click="OnPopupTerminate"> |
126 | | - <Button.IsVisible> |
127 | | - <MultiBinding Converter="{x:Static BoolConverters.And}"> |
128 | | - <Binding Path="InProgress" Mode="OneWay"/> |
129 | | - <Binding Path="CanTerminate" Mode="OneWay"/> |
130 | | - </MultiBinding> |
131 | | - </Button.IsVisible> |
132 | | - </Button> |
133 | | - </StackPanel> |
134 | | - </DataTemplate> |
135 | | - </ContentControl.DataTemplates> |
136 | | - </ContentControl> |
| 122 | + <!-- Terminate --> |
| 123 | + <Button Classes="flat" |
| 124 | + Height="28" |
| 125 | + Margin="0,0,0,8" Padding="16,0" |
| 126 | + HorizontalAlignment="Center" |
| 127 | + Content="{DynamicResource Text.Terminate}" |
| 128 | + Click="OnPopupTerminate"> |
| 129 | + <Button.IsVisible> |
| 130 | + <MultiBinding Converter="{x:Static BoolConverters.And}"> |
| 131 | + <Binding Path="InProgress" Mode="OneWay"/> |
| 132 | + <Binding Path="CanTerminate" Mode="OneWay"/> |
| 133 | + </MultiBinding> |
| 134 | + </Button.IsVisible> |
| 135 | + </Button> |
| 136 | + </StackPanel> |
| 137 | + </DataTemplate> |
| 138 | + </ContentControl.DataTemplates> |
| 139 | + </ContentControl> |
| 140 | + </Border> |
137 | 141 | </Border> |
138 | | - </Border> |
139 | 142 |
|
| 143 | + <Rectangle Height="1" |
| 144 | + HorizontalAlignment="Stretch" VerticalAlignment="Top" |
| 145 | + Fill="{DynamicResource Brush.Border0}"/> |
| 146 | + </Grid> |
| 147 | + |
140 | 148 | <!-- Notifications Clear Button --> |
141 | 149 | <Button Grid.Row="1" |
142 | 150 | Classes="flat primary" |
|
0 commit comments