Add bold left border on FloatingWindow (goes away when maximized)
This commit is contained in:
1 parent
3c3c94b4c3
commit
705e61f2cf
5 files changed
+34
-26
No files matched your search
@@ -44,6 +44,9 @@ namespace bts.shell {
|
||||
[ProtoMember(200)]
|
||||
public readonly List<SortingCriteria> sort_criteria;
|
||||
|
||||
//[ProtoMember(300)]
|
||||
//public readonly bool show_menu_text;
|
||||
|
||||
private TimeAndSalesStartupData() {}//for ptorobuf
|
||||
public TimeAndSalesStartupData(SecurityCriteria securityCrit, List<SortingCriteria> sortCrit) {
|
||||
security_criteria = securityCrit;
|
||||
|
||||
@@ -17,6 +17,7 @@ namespace mbts.ui.controls {
|
||||
|
||||
public SparkMenu(IEnumerable<SparkCommand> commands, IBus bus) {
|
||||
ItemsSource = commands.Select(c => new SparkCommandVM(c, bus)).ToList();
|
||||
SetCurrentValue(FocusableProperty, false);
|
||||
}
|
||||
|
||||
public bool ShowText {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<SolidColorBrush x:Key="StartMenuMouseOverBackground" Color="#6ddbff" />
|
||||
<SolidColorBrush x:Key="StartMenuPressedBorderBrush" Color="#FFC29B29" />
|
||||
<SolidColorBrush x:Key="StartMenuPressedBackground" Color="#FFE3C085" />
|
||||
|
||||
|
||||
<Color x:Key="Button.MouseOver.BackgroundColor">#210080FF</Color>
|
||||
<Color x:Key="Button.MouseOver.BorderColor">#80DADADA</Color>
|
||||
<Color x:Key="Button.MousePressed.BackgroundColor">#400080FF</Color>
|
||||
@@ -57,7 +57,7 @@
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="controls:SparkMenuItem">
|
||||
|
||||
|
||||
<Border Name="launcher_button_border"
|
||||
BorderThickness="0"
|
||||
MinWidth="150"
|
||||
@@ -67,23 +67,24 @@
|
||||
>
|
||||
<Border.ToolTip>
|
||||
<ToolTip>
|
||||
<ContentPresenter></ContentPresenter>
|
||||
<ContentPresenter></ContentPresenter>
|
||||
</ToolTip>
|
||||
</Border.ToolTip>
|
||||
<Grid Width="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Border}}, Path=ActualWidth}">
|
||||
<Polygon
|
||||
Name="menu_item_animated_arrow"
|
||||
Points="0,0 290,0 300,22.5 290,45 0,45 10,22.5"
|
||||
Margin="-300 0 0 0"
|
||||
StrokeThickness="0"
|
||||
Fill="{DynamicResource StartMenuMouseOverBackground}"
|
||||
/>
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="10"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="10"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Canvas>
|
||||
<Polygon
|
||||
Name="menu_item_animated_arrow"
|
||||
Points="0,0 290,0 300,22.5 290,45 0,45 10,22.5"
|
||||
Margin="-300 0 0 0"
|
||||
StrokeThickness="0"
|
||||
Fill="{DynamicResource StartMenuMouseOverBackground}"
|
||||
/>
|
||||
</Canvas>
|
||||
<Polygon
|
||||
Name="menu_item_arrow"
|
||||
Grid.Column="0"
|
||||
Points="0,0 10,22.5 0,45"
|
||||
@@ -91,14 +92,13 @@
|
||||
Fill="{DynamicResource StartMenuMouseOverBackground}"
|
||||
Margin="-10 0 0 0"
|
||||
/>
|
||||
<BulletDecorator Grid.Column="1" Margin="5 10 20 10">
|
||||
<BulletDecorator.Bullet>
|
||||
<Image Name="launcher_menu_item_icon" Source="{TemplateBinding Icon}" Width="25" Height="25" />
|
||||
</BulletDecorator.Bullet>
|
||||
<ContentPresenter HorizontalAlignment="Left" VerticalAlignment="Center"
|
||||
<BulletDecorator Grid.Column="1" Margin="5 10 15 10">
|
||||
<BulletDecorator.Bullet>
|
||||
<Image Name="launcher_menu_item_icon" Source="{TemplateBinding Icon}" Width="25" Height="25" />
|
||||
</BulletDecorator.Bullet>
|
||||
<ContentPresenter HorizontalAlignment="Left" VerticalAlignment="Center"
|
||||
Name="button_content" Margin="8 0 0 0"/>
|
||||
</BulletDecorator>
|
||||
</Grid>
|
||||
</BulletDecorator>
|
||||
</Grid>
|
||||
|
||||
</Border>
|
||||
@@ -195,9 +195,9 @@
|
||||
</BeginStoryboard>
|
||||
</EventTrigger>
|
||||
</ControlTemplate.Triggers>
|
||||
|
||||
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
|
||||
</Style>
|
||||
|
||||
@@ -132,7 +132,8 @@
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<DataTrigger Binding="{Binding Path=WindowState, RelativeSource={RelativeSource self}}" Value="Normal">
|
||||
<Setter Property="Padding" Value="4,0,4,4" />
|
||||
<Setter Property="Padding" Value="0,0,4,4" />
|
||||
<Setter Property="BorderThickness" Value="7,1,1,1" TargetName="window_border" />
|
||||
</DataTrigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
|
||||
@@ -14,6 +14,9 @@
|
||||
MaxHeight="{Binding SelectedItem.Content.MaxHeight, Mode=OneWay, ElementName=_tabs}" MaxWidth="{Binding SelectedItem.Content.MaxWidth, Mode=OneWay, ElementName=_tabs}"
|
||||
BorderThickness="1" BorderBrush="{Binding Path=SelectedItem.ViewModel.OwnerName, ElementName=_tabs, Converter={StaticResource ModuleToColor}}"
|
||||
>
|
||||
<Window.Resources>
|
||||
<SolidColorBrush x:Key="StartMenuMouseOverBackground" Color="{Binding Path=SelectedItem.ViewModel.OwnerName, ElementName=_tabs, Converter={StaticResource ModuleToColor}}" />
|
||||
</Window.Resources>
|
||||
<TabControl x:Name="_tabs" Margin="0" Padding="0" BorderThickness="0" ui:WindowStyle.IsNonClientArea="false">
|
||||
<TabControl.Template>
|
||||
<ControlTemplate TargetType="TabControl">
|
||||
|
||||
Reference in new issue
Block a user