ui: Touch up AlgoStudio (dark theme)
This commit is contained in:
1 parent
b8c7abd6b3
commit
c527b6e84f
3 files changed
+16
-5
No files matched your search
@@ -81,7 +81,9 @@ namespace mbts.ui {
|
||||
|
||||
public static Geometry PlayGeometry => Geometry.Parse(get_geometric_path(PlayGeometryKey).FirstOrDefault() ?? string.Empty);
|
||||
|
||||
static readonly Pen _copy_boxes_pen = new Pen(Brushes.Black, HighDpiExtensions.RoundLayoutValue(5)).frozen();
|
||||
static readonly Pen _copy_boxes_pen = new Pen(
|
||||
BTSColors.UI.icon_foreground, 5.0.RoundLayoutValue())
|
||||
.frozen();
|
||||
|
||||
static readonly string base_uri = "pack://application:,,,/Images/Icons/";
|
||||
private static ResourceDictionary _resources = (ResourceDictionary)Application.LoadComponent(new Uri("/Images/Vector/Icons.xaml", UriKind.RelativeOrAbsolute));
|
||||
|
||||
@@ -337,7 +337,8 @@
|
||||
MinWidth="50"
|
||||
IsEnabled="True"
|
||||
Text="{Binding selected_definition.name, UpdateSourceTrigger=PropertyChanged, Delay=25}"
|
||||
ToolTip="This algo's full name." />
|
||||
ToolTip="This algo's full name."
|
||||
Style="{StaticResource TextBox.Dark}" />
|
||||
|
||||
<TextBox
|
||||
x:Name="abbreviation_text_box"
|
||||
@@ -347,7 +348,8 @@
|
||||
Margin="{StaticResource Margin.LP1_RP1}"
|
||||
MinWidth="50"
|
||||
IsEnabled="True"
|
||||
Text="{Binding selected_definition.abbreviation, UpdateSourceTrigger=PropertyChanged, Delay=25}">
|
||||
Text="{Binding selected_definition.abbreviation, UpdateSourceTrigger=PropertyChanged, Delay=25}"
|
||||
Style="{StaticResource TextBox.Dark}">
|
||||
<TextBox.ToolTip>
|
||||
<TextBlock>
|
||||
<TextBlock.Inlines>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<ResourceDictionary
|
||||
<ResourceDictionary
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:sp="clr-namespace:mbts.spark"
|
||||
@@ -55,6 +55,7 @@
|
||||
|
||||
<!-- Styles & Templates -->
|
||||
<Style x:Key="ParamLabel" TargetType="FrameworkElement">
|
||||
<Setter Property="TextBlock.Foreground" Value="{u:BTSBrush UI.default_foreground}" />
|
||||
<Setter Property="Margin" Value="{StaticResource Margin.LP1}"/>
|
||||
</Style>
|
||||
|
||||
@@ -74,7 +75,7 @@
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" SharedSizeGroup="order_selector_desc"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="{Binding}" FontWeight="Bold"/>
|
||||
<TextBlock Text="{Binding}" FontWeight="Bold" Foreground="{u:BTSBrush UI.default_foreground}" />
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
|
||||
@@ -1539,6 +1540,9 @@
|
||||
<TextBox
|
||||
Grid.Column="2"
|
||||
HorizontalAlignment="Stretch"
|
||||
Background="{u:BTSBrush UI.TextBox.normal_background}"
|
||||
CaretBrush="{u:BTSBrush UI.TextBox.normal_foreground}"
|
||||
Foreground="{u:BTSBrush UI.TextBox.normal_foreground}"
|
||||
IsEnabled="{Binding
|
||||
DataContext.editing_permissions,
|
||||
RelativeSource={RelativeSource AncestorType=ItemsControl},
|
||||
@@ -1770,6 +1774,9 @@
|
||||
<TextBox
|
||||
Grid.Column="2"
|
||||
HorizontalAlignment="Stretch"
|
||||
Background="{u:BTSBrush UI.TextBox.normal_background}"
|
||||
CaretBrush="{u:BTSBrush UI.TextBox.normal_foreground}"
|
||||
Foreground="{u:BTSBrush UI.TextBox.normal_foreground}"
|
||||
IsEnabled="{Binding DataContext.editing_permissions, RelativeSource={RelativeSource AncestorType=ItemsControl}, Converter={StaticResource CanEditValuesConverter}}"
|
||||
Text="{Binding value, UpdateSourceTrigger=PropertyChanged}" />
|
||||
</Grid>
|
||||
|
||||
Reference in new issue
Block a user