|
98 | 98 | <Style x:Key="CustomButton" TargetType="{x:Type Button}"> |
99 | 99 | <Setter Property="SnapsToDevicePixels" Value="true"/> |
100 | 100 | <Setter Property="OverridesDefaultStyle" Value="true"/> |
| 101 | + <Setter Property="Background" Value="{DynamicResource ButtonBackground}"/> |
| 102 | + <Setter Property="Foreground" Value="{DynamicResource ButtonForeground}"/> |
101 | 103 | <Setter Property="Template"> |
102 | 104 | <Setter.Value> |
103 | 105 | <ControlTemplate TargetType="{x:Type Button}"> |
104 | 106 | <Border x:Name="shortcutbutton" BorderThickness="0" BorderBrush="Black" Background="{TemplateBinding Background}"> |
105 | 107 | <ContentPresenter Margin="0" HorizontalAlignment="Center" VerticalAlignment="Center" RecognizesAccessKey="True"/> |
106 | 108 | </Border> |
107 | 109 | <ControlTemplate.Triggers> |
| 110 | + <Trigger Property="IsEnabled" Value="False"> |
| 111 | + <Setter Property="Foreground" Value="#FF707070" /> |
| 112 | + </Trigger> |
108 | 113 | <Trigger Property="IsMouseOver" Value="true"> |
109 | 114 | <Setter TargetName="shortcutbutton" Property="Background" Value="#FF494949" /> |
110 | | - <!--<Setter Property="TextElement.Foreground" TargetName="shortcutbutton" Value="Blue"/>--> |
| 115 | + <Setter Property="TextElement.Foreground" TargetName="shortcutbutton" Value="White"/> |
111 | 116 | </Trigger> |
112 | 117 | <Trigger Property="IsPressed" Value="true"> |
113 | 118 | <Setter TargetName="shortcutbutton" Property="Background" Value="#FF0F0F0F" /> |
114 | | - <!--<Setter Property="TextElement.Foreground" TargetName="shortcutbutton" Value="Red"/>--> |
| 119 | + <Setter Property="TextElement.Foreground" TargetName="shortcutbutton" Value="White"/> |
115 | 120 | </Trigger> |
116 | 121 | </ControlTemplate.Triggers> |
117 | 122 | </ControlTemplate> |
|
244 | 249 | <Label Content="UnityLauncherPro" IsHitTestVisible="False" Margin="19,0,0,-5" Foreground="#FFB8B8B8" FontSize="12" HorizontalAlignment="Left" /> |
245 | 250 | <!-- minimize --> |
246 | 251 | <Button x:Name="btnMinimize" BorderThickness="0" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" HorizontalAlignment="Right" VerticalAlignment="Top" Height="23" Width="23" Background="Transparent" Click="BtnMinimize_Click" Margin="0,0,27,0" Padding="2,0,2,8" IsTabStop="False"> |
247 | | - <TextBlock Text="–" FontSize="15" Foreground="#FFC3C3C3" Padding="0" Height="23" HorizontalAlignment="Center"/> |
| 252 | + <TextBlock Text="–" FontSize="15" Foreground="#FFC3C3C3" Padding="0" Height="23" HorizontalAlignment="Center"/> |
248 | 253 | </Button> |
249 | 254 | <!-- close --> |
250 | | - <Button x:Name="btnClose" BorderThickness="0" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" HorizontalAlignment="Right" VerticalAlignment="Top" Height="23" Width="23" Background="Transparent" Click="BtnClose_Click" Padding="0,2" IsTabStop="False"> |
| 255 | + <Button x:Name="btnClose" BorderThickness="0" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" HorizontalAlignment="Right" VerticalAlignment="Top" Height="23" Width="23" Background="Transparent" Click="BtnClose_Click" Padding="0,2" IsTabStop="False"> |
251 | 256 | <TextBlock Text="❌" FontSize="10" Foreground="#FFC3C3C3" Padding="5,3,4,4" HorizontalAlignment="Center" /> |
252 | 257 | </Button> |
253 | 258 | </Grid> |
|
374 | 379 | <RowDefinition Height="32" /> |
375 | 380 | </Grid.RowDefinitions> |
376 | 381 | <Button Grid.Column="0" Style="{StaticResource CustomButton}" x:Name="btnUpgradeProject" Background="{DynamicResource ButtonBackground}" Foreground="#FFC1C1C1" Margin="5,0,0,0" BorderBrush="{x:Null}" Click="BtnUpgradeProject_Click"> |
377 | | - <Label Foreground="{DynamicResource ButtonForeground}" Content="_Upgrade"/> |
| 382 | + <Label Content="_Upgrade" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" /> |
378 | 383 | </Button> |
379 | 384 | <Button Grid.Column="1" Style="{StaticResource CustomButton}" x:Name="btnLaunchUnity" Background="{DynamicResource ButtonBackground}" Foreground="#FFC1C1C1" Margin="8,0,0,0" BorderBrush="{x:Null}" Click="BtnLaunchUnity_Click" > |
380 | | - <Label Foreground="{DynamicResource ButtonForeground}" Content="_Run Unity"/> |
| 385 | + <Label Content="_Run Unity" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" /> |
381 | 386 | </Button> |
382 | 387 |
|
383 | 388 | <Button Grid.Column="2" Style="{StaticResource CustomButton}" x:Name="btnLaunchProject" Background="{DynamicResource ButtonBackground}" Foreground="#FFC1C1C1" Margin="8,0,0,0" BorderBrush="{x:Null}" Click="BtnLaunchProject_Click" > |
384 | | - <Label Foreground="{DynamicResource ButtonForeground}" Content="_Open Project"/> |
| 389 | + <Label Content="_Open Project" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" /> |
385 | 390 | </Button> |
386 | 391 |
|
387 | 392 | <Button Grid.Column="3" Style="{StaticResource CustomButton}" x:Name="btnExplore" Background="{DynamicResource ButtonBackground}" Foreground="#FFC1C1C1" Margin="8,0,0,0" BorderBrush="{x:Null}" Click="BtnExplore_Click" > |
388 | | - <Label Foreground="{DynamicResource ButtonForeground}" Content="_Explore"/> |
| 393 | + <Label Content="_Explore" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" /> |
389 | 394 | </Button> |
390 | 395 | </Grid> |
391 | 396 | </Grid> |
|
452 | 457 | <RowDefinition Height="32" /> |
453 | 458 | </Grid.RowDefinitions> |
454 | 459 | <Button Grid.Column="0" Style="{StaticResource CustomButton}" x:Name="btnReleaseNotes" Background="{DynamicResource ButtonBackground}" Foreground="{DynamicResource ButtonForeground}" Margin="5,0,0,0" BorderBrush="{x:Null}" Click="BtnReleaseNotes_Click"> |
455 | | - <Label Foreground="{DynamicResource ButtonForeground}" Content="Release Notes"/> |
| 460 | + <Label Content="Release Notes" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" /> |
456 | 461 | </Button> |
457 | 462 | <Button Grid.Column="1" Style="{StaticResource CustomButton}" x:Name="btnUpdateUnity" Background="{DynamicResource ButtonBackground}" Foreground="{DynamicResource ButtonForeground}" Margin="8,0,0,0" BorderBrush="{x:Null}" Click="BtnUpdateUnity_Click"> |
458 | | - <Label Foreground="{DynamicResource ButtonForeground}" Content="Update"/> |
| 463 | + <Label Content="Update" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" /> |
459 | 464 | </Button> |
460 | 465 | <Button Grid.Column="2" Style="{StaticResource CustomButton}" x:Name="btnRunUnity" Background="{DynamicResource ButtonBackground}" Foreground="{DynamicResource ButtonForeground}" Margin="8,0,0,0" BorderBrush="{x:Null}" Click="BtnRunUnity_Click" > |
461 | | - <Label Foreground="{DynamicResource ButtonForeground}" Content="_Run Unity"/> |
| 466 | + <Label Content="_Run Unity" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" /> |
462 | 467 | </Button> |
463 | 468 | <Button Grid.Column="3" Style="{StaticResource CustomButton}" x:Name="btnExploreUnity" Background="{DynamicResource ButtonBackground}" Margin="8,0,0,0" BorderBrush="{x:Null}" Foreground="{DynamicResource ButtonForeground}" Click="BtnExploreUnity_Click" > |
464 | | - <Label Foreground="{DynamicResource ButtonForeground}" Content="_Explore"/> |
| 469 | + <Label Content="_Explore" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" /> |
465 | 470 | </Button> |
466 | 471 |
|
467 | 472 | </Grid> |
|
534 | 539 | <RowDefinition Height="32" /> |
535 | 540 | </Grid.RowDefinitions> |
536 | 541 | <Button Grid.Column="0" Style="{StaticResource CustomButton}" x:Name="btnDonwloadInBrowser" Background="{DynamicResource ButtonBackground}" Foreground="{DynamicResource ButtonForeground}" Margin="5,0,0,0" BorderBrush="{x:Null}" Click="BtnDonwloadInBrowser_Click"> |
537 | | - <Label Foreground="{DynamicResource ButtonForeground}" Content="_Download in browser"/> |
| 542 | + <Label Content="_Download in browser" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" /> |
538 | 543 | </Button> |
539 | 544 | <Button Grid.Column="1" Style="{StaticResource CustomButton}" x:Name="btnOpenWebsite" Background="{DynamicResource ButtonBackground}" Foreground="{DynamicResource ButtonForeground}" Margin="8,0,0,0" BorderBrush="{x:Null}" Click="BtnOpenWebsite_Click" > |
540 | | - <Label Foreground="{DynamicResource ButtonForeground}" Content="_Release Notes"/> |
| 545 | + <Label Content="_Release Notes" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" /> |
541 | 546 | </Button> |
542 | 547 | </Grid> |
543 | 548 | </Grid> |
|
557 | 562 | <Grid Grid.Row="1" VerticalAlignment="Top" HorizontalAlignment="Left"> |
558 | 563 | <Border> |
559 | 564 | <StackPanel Orientation="Horizontal" Margin="10"> |
560 | | - <Button Style="{StaticResource CustomButton}" x:Name="btnOpenEditorLogsFolder" Background="{DynamicResource ButtonBackground}" Foreground="{DynamicResource ButtonForeground}" Margin="0" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Top" Click="BtnOpenEditorLogsFolder_Click"> |
561 | | - <Label Foreground="{DynamicResource ButtonForeground}" Content="_Editor Logs"/> |
| 565 | + <Button Style="{StaticResource CustomButton}" x:Name="btnOpenEditorLogsFolder" Margin="0" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Top" Click="BtnOpenEditorLogsFolder_Click" ToolTip="Open Editor logs folder in Explorer"> |
| 566 | + <Label Content="_Editor Logs" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" /> |
562 | 567 | </Button> |
563 | | - <Button Style="{StaticResource CustomButton}" x:Name="btnOpenPlayerLogs" Background="{DynamicResource ButtonBackground}" Foreground="{DynamicResource ButtonForeground}" Margin="10,0,0,0" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Top" Click="BtnOpenPlayerLogs_Click"> |
564 | | - <Label Foreground="{DynamicResource ButtonForeground}" Content="_Player Logs"/> |
| 568 | + <Button Style="{StaticResource CustomButton}" x:Name="btnOpenPlayerLogs" Margin="10,0,0,0" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Top" Click="BtnOpenPlayerLogs_Click" ToolTip="Open Player logs folder in Explorer"> |
| 569 | + <Label Content="_Player Logs" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" /> |
565 | 570 | </Button> |
566 | | - <Button Style="{StaticResource CustomButton}" x:Name="btnOpenADBLogCat" Background="{DynamicResource ButtonBackground}" Foreground="{DynamicResource ButtonForeground}" Margin="10,0,0,0" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Top" Click="BtnOpenADBLogCat_Click"> |
567 | | - <Label Foreground="{DynamicResource ButtonForeground}" Content="_ADB logcat"/> |
| 571 | + <Button Style="{StaticResource CustomButton}" x:Name="btnOpenADBLogCat" Margin="10,0,0,0" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Top" Click="BtnOpenADBLogCat_Click" ToolTip="Start ADB logcat commandline"> |
| 572 | + <Label Content="_ADB logcat" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" /> |
568 | 573 | </Button> |
569 | | - <Button Style="{StaticResource CustomButton}" x:Name="btnAdbBindWifi" Background="{DynamicResource ButtonBackground}" Foreground="{DynamicResource ButtonForeground}" Margin="10,0,0,0" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Top" Click="BtnAdbBindWifi_Click"> |
570 | | - <Label Foreground="{DynamicResource ButtonForeground}" Content="_Bind Wifi"/> |
| 574 | + <Button Style="{StaticResource CustomButton}" x:Name="btnAdbBindWifi" Margin="10,0,0,0" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Top" Click="BtnAdbBindWifi_Click" IsEnabled="False" ToolTip="Bind Android device to wireless ADB"> |
| 575 | + <Label Content="_Bind Wifi" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" /> |
571 | 576 | </Button> |
572 | 577 | </StackPanel> |
573 | 578 | </Border> |
|
601 | 606 | <!-- locations add/remove --> |
602 | 607 | <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="0" > |
603 | 608 | <Button Style="{StaticResource CustomButton}" x:Name="btnAddInstallationFolder" Background="{DynamicResource ButtonBackground}" Foreground="{DynamicResource ButtonForeground}" Margin="5,4,0,3" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Center" Click="BtnAddInstallationFolder_Click" Width="116"> |
604 | | - <Label Foreground="{DynamicResource ButtonForeground}" Content="_Add Folder"/> |
| 609 | + <Label Content="_Add Folder" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" /> |
605 | 610 | </Button> |
606 | 611 | <Button Style="{StaticResource CustomButton}" x:Name="btnRemoveInstallationFolder" Background="{DynamicResource ButtonBackground}" Foreground="{DynamicResource ButtonForeground}" Margin="5,0,0,0" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Center" Click="BtnRemoveInstallationFolder_Click"> |
607 | | - <Label Foreground="{DynamicResource ButtonForeground}" Content="_Remove Folder"/> |
| 612 | + <Label Content="_Remove Folder" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" /> |
608 | 613 | </Button> |
609 | 614 | </StackPanel> |
610 | 615 | <!-- settings--> |
|
618 | 623 | </StackPanel> |
619 | 624 |
|
620 | 625 | <!-- links--> |
621 | | - <Button Grid.Row="4" Style="{StaticResource CustomButton}" x:Name="btnOpenGithub" Background="{DynamicResource ButtonBackground}" Foreground="{DynamicResource ButtonForeground}" Margin="10,0,0,10" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Center" Click="BtnOpenGithub_Click"> |
622 | | - <Label Foreground="{DynamicResource ButtonForeground}" Content="_View in Github"/> |
| 626 | + <Button Grid.Row="4" Style="{StaticResource CustomButton}" x:Name="btnOpenGithub" Margin="10,0,0,10" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Center" Click="BtnOpenGithub_Click"> |
| 627 | + <Label Content="_View in Github" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" /> |
623 | 628 | </Button> |
624 | 629 |
|
625 | 630 | </Grid> |
|
0 commit comments