|
1119 | 1119 | IsEnabled="{Binding !IsConnecting}" |
1120 | 1120 | IsVisible="{Binding IsGitHubRequired}" |
1121 | 1121 | Background="Transparent" BorderThickness="0" |
1122 | | - Padding="0" |
| 1122 | + Padding="0" HorizontalAlignment="Stretch" |
1123 | 1123 | HorizontalContentAlignment="Stretch"> |
1124 | 1124 | <Border CornerRadius="10" Padding="12,10" |
1125 | 1125 | Background="{DynamicResource ThemeSurfaceBrush}" |
1126 | 1126 | BorderBrush="{DynamicResource ThemeBorderBrush}" |
1127 | 1127 | BorderThickness="1"> |
1128 | | - <Grid ColumnDefinitions="Auto,*,Auto"> |
| 1128 | + <Grid ColumnDefinitions="Auto,*"> |
1129 | 1129 | <!-- GitHub logo with themed background --> |
1130 | 1130 | <Border CornerRadius="8" Width="36" Height="36" |
1131 | 1131 | Background="{DynamicResource ThemeGitHubBrandBrush}" |
|
1155 | 1155 | IsVisible="{Binding IsGitHubConnected}" |
1156 | 1156 | TextWrapping="Wrap"/> |
1157 | 1157 | </StackPanel> |
1158 | | - <!-- Action hint --> |
1159 | | - <TextBlock Grid.Column="2" Text="Connect" |
1160 | | - FontSize="{DynamicResource ThemeFontSizeXs}" |
1161 | | - Foreground="{DynamicResource ThemePrimaryBrush}" |
1162 | | - VerticalAlignment="Center" |
1163 | | - IsVisible="{Binding !IsGitHubConnected}"/> |
1164 | 1158 | </Grid> |
1165 | 1159 | </Border> |
1166 | 1160 | </Button> |
|
1170 | 1164 | IsEnabled="{Binding !IsGoogleConnecting}" |
1171 | 1165 | IsVisible="{Binding IsGoogleRequired}" |
1172 | 1166 | Background="Transparent" BorderThickness="0" |
1173 | | - Padding="0" |
| 1167 | + Padding="0" HorizontalAlignment="Stretch" |
1174 | 1168 | HorizontalContentAlignment="Stretch"> |
1175 | 1169 | <Border CornerRadius="10" Padding="12,10" |
1176 | 1170 | Background="{DynamicResource ThemeSurfaceBrush}" |
|
1199 | 1193 | <TextBlock Text="Connect your account" |
1200 | 1194 | FontSize="{DynamicResource ThemeFontSizeXs}" |
1201 | 1195 | Foreground="{DynamicResource ThemeTextMutedBrush}" |
1202 | | - IsVisible="{Binding GoogleConnections.Count, Converter={x:Static ObjectConverters.Equal}, ConverterParameter=0}" |
| 1196 | + IsVisible="{Binding !IsGoogleConnected}" |
1203 | 1197 | TextWrapping="Wrap"/> |
1204 | 1198 | <!-- Connected --> |
1205 | 1199 | <TextBlock Text="Connected" |
1206 | 1200 | FontSize="{DynamicResource ThemeFontSizeXs}" |
1207 | 1201 | Foreground="{DynamicResource ThemeSuccessBrush}" |
1208 | | - IsVisible="{Binding GoogleConnections.Count, Converter={x:Static ObjectConverters.NotEqual}, ConverterParameter=0}" |
| 1202 | + IsVisible="{Binding IsGoogleConnected}" |
1209 | 1203 | TextWrapping="Wrap"/> |
1210 | 1204 | </StackPanel> |
1211 | | - <!-- Action hint / spinner --> |
1212 | | - <TextBlock Grid.Column="2" Text="Connect" |
1213 | | - FontSize="{DynamicResource ThemeFontSizeXs}" |
1214 | | - Foreground="{DynamicResource ThemePrimaryBrush}" |
1215 | | - VerticalAlignment="Center" |
1216 | | - IsVisible="{Binding GoogleConnections.Count, Converter={x:Static ObjectConverters.Equal}, ConverterParameter=0}"/> |
| 1205 | + <!-- Connecting spinner --> |
1217 | 1206 | <ProgressBar Grid.Column="2" IsIndeterminate="True" Width="40" Height="3" |
1218 | 1207 | VerticalAlignment="Center" |
1219 | 1208 | IsVisible="{Binding IsGoogleConnecting}"/> |
|
1226 | 1215 | IsEnabled="{Binding !IsMicrosoftConnecting}" |
1227 | 1216 | IsVisible="{Binding IsMicrosoftRequired}" |
1228 | 1217 | Background="Transparent" BorderThickness="0" |
1229 | | - Padding="0" |
| 1218 | + Padding="0" HorizontalAlignment="Stretch" |
1230 | 1219 | HorizontalContentAlignment="Stretch"> |
1231 | 1220 | <Border CornerRadius="10" Padding="12,10" |
1232 | 1221 | Background="{DynamicResource ThemeSurfaceBrush}" |
|
1255 | 1244 | <TextBlock Text="Connect your account" |
1256 | 1245 | FontSize="{DynamicResource ThemeFontSizeXs}" |
1257 | 1246 | Foreground="{DynamicResource ThemeTextMutedBrush}" |
1258 | | - IsVisible="{Binding MicrosoftConnections.Count, Converter={x:Static ObjectConverters.Equal}, ConverterParameter=0}" |
| 1247 | + IsVisible="{Binding !IsMicrosoftConnected}" |
1259 | 1248 | TextWrapping="Wrap"/> |
1260 | 1249 | <!-- Connected --> |
1261 | 1250 | <TextBlock Text="Connected" |
1262 | 1251 | FontSize="{DynamicResource ThemeFontSizeXs}" |
1263 | 1252 | Foreground="{DynamicResource ThemeSuccessBrush}" |
1264 | | - IsVisible="{Binding MicrosoftConnections.Count, Converter={x:Static ObjectConverters.NotEqual}, ConverterParameter=0}" |
| 1253 | + IsVisible="{Binding IsMicrosoftConnected}" |
1265 | 1254 | TextWrapping="Wrap"/> |
1266 | 1255 | </StackPanel> |
1267 | | - <!-- Action hint / spinner --> |
1268 | | - <TextBlock Grid.Column="2" Text="Connect" |
1269 | | - FontSize="{DynamicResource ThemeFontSizeXs}" |
1270 | | - Foreground="{DynamicResource ThemePrimaryBrush}" |
1271 | | - VerticalAlignment="Center" |
1272 | | - IsVisible="{Binding MicrosoftConnections.Count, Converter={x:Static ObjectConverters.Equal}, ConverterParameter=0}"/> |
| 1256 | + <!-- Connecting spinner --> |
1273 | 1257 | <ProgressBar Grid.Column="2" IsIndeterminate="True" Width="40" Height="3" |
1274 | 1258 | VerticalAlignment="Center" |
1275 | 1259 | IsVisible="{Binding IsMicrosoftConnecting}"/> |
|
0 commit comments