Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Thick-Common
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘栩锋
Thick-Common
Commits
b2c7eba0
Commit
b2c7eba0
authored
Oct 09, 2022
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
缩小了 NoToggleButtonStyle.xaml 与 ToggleButtonOnOffStyle.xaml 控件尺寸
parent
94085f03
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
NoToggleButtonStyle.xaml
...ibrary/FLY.ControlLibrary/Themes/NoToggleButtonStyle.xaml
+5
-5
ToggleButtonOnOffStyle.xaml
...ary/FLY.ControlLibrary/Themes/ToggleButtonOnOffStyle.xaml
+5
-5
No files found.
Project.FLY.ControlLibrary/FLY.ControlLibrary/Themes/NoToggleButtonStyle.xaml
View file @
b2c7eba0
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Padding" Value="1"/>
<Setter Property="Padding" Value="1"/>
<Setter Property="Width" Value="
110
"/>
<Setter Property="Width" Value="
82
"/>
<Setter Property="OffBrush" Value="{StaticResource Color_theme_static}" />
<Setter Property="OffBrush" Value="{StaticResource Color_theme_static}" />
<Setter Property="OnBrush" Value="{StaticResource Color_theme_activity}" />
<Setter Property="OnBrush" Value="{StaticResource Color_theme_activity}" />
<Setter Property="OffLabel" Value="{Binding Content,RelativeSource={RelativeSource Mode=Self}}" />
<Setter Property="OffLabel" Value="{Binding Content,RelativeSource={RelativeSource Mode=Self}}" />
...
@@ -18,11 +18,11 @@
...
@@ -18,11 +18,11 @@
<Setter Property="Template">
<Setter Property="Template">
<Setter.Value>
<Setter.Value>
<ControlTemplate TargetType="flyctrl:NoToggleButton">
<ControlTemplate TargetType="flyctrl:NoToggleButton">
<Border x:Name="canvas"
Height="55"
Width="{TemplateBinding Width}" Background="{TemplateBinding OffBrush}">
<Border x:Name="canvas" Width="{TemplateBinding Width}" Background="{TemplateBinding OffBrush}">
<Grid>
<Grid>
<Rectangle x:Name="Path_block" Height="
45" Width="24
" Margin="5" Fill="White" HorizontalAlignment="Left"/>
<Rectangle x:Name="Path_block" Height="
33" Width="18
" Margin="5" Fill="White" HorizontalAlignment="Left"/>
<StackPanel x:Name="SP_Text" Orientation="Horizontal" Margin="
20,15" HorizontalAlignment="Right
">
<StackPanel x:Name="SP_Text" Orientation="Horizontal" Margin="
15,0" HorizontalAlignment="Right" VerticalAlignment="Center
">
<TextBlock x:Name="TB_OnOff" Text="{TemplateBinding Property=OffLabel}" Foreground="White" FontSize="
24" FontFamily="Microsoft
Sans Serif"/>
<TextBlock x:Name="TB_OnOff" Text="{TemplateBinding Property=OffLabel}" Foreground="White" FontSize="
18" FontFamily="Global
Sans Serif"/>
</StackPanel>
</StackPanel>
</Grid>
</Grid>
</Border>
</Border>
...
...
Project.FLY.ControlLibrary/FLY.ControlLibrary/Themes/ToggleButtonOnOffStyle.xaml
View file @
b2c7eba0
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Padding" Value="1"/>
<Setter Property="Padding" Value="1"/>
<Setter Property="Width" Value="
110
"/>
<Setter Property="Width" Value="
82
"/>
<Setter Property="OffBrush" Value="{StaticResource Color_theme_static}" />
<Setter Property="OffBrush" Value="{StaticResource Color_theme_static}" />
<Setter Property="OnBrush" Value="{StaticResource Color_theme_activity}" />
<Setter Property="OnBrush" Value="{StaticResource Color_theme_activity}" />
<Setter Property="OffLabel" Value="{Binding Content,RelativeSource={RelativeSource Mode=Self}}" />
<Setter Property="OffLabel" Value="{Binding Content,RelativeSource={RelativeSource Mode=Self}}" />
...
@@ -17,11 +17,11 @@
...
@@ -17,11 +17,11 @@
<Setter Property="Template">
<Setter Property="Template">
<Setter.Value>
<Setter.Value>
<ControlTemplate TargetType="flyctrl:ToggleButtonOnOff">
<ControlTemplate TargetType="flyctrl:ToggleButtonOnOff">
<Border x:Name="canvas"
Height="55"
Width="{TemplateBinding Width}" Background="{TemplateBinding OffBrush}">
<Border x:Name="canvas" Width="{TemplateBinding Width}" Background="{TemplateBinding OffBrush}">
<Grid>
<Grid>
<Rectangle x:Name="Path_block" Height="
45" Width="24
" Margin="5" Fill="White" HorizontalAlignment="Left"/>
<Rectangle x:Name="Path_block" Height="
33" Width="18
" Margin="5" Fill="White" HorizontalAlignment="Left"/>
<StackPanel x:Name="SP_Text" Orientation="Horizontal" Margin="
20,15" HorizontalAlignment="Right
">
<StackPanel x:Name="SP_Text" Orientation="Horizontal" Margin="
15,0" HorizontalAlignment="Right" VerticalAlignment="Center
">
<TextBlock x:Name="TB_OnOff" Text="{TemplateBinding Property=OffLabel}" Foreground="White" FontSize="
24" FontFamily="Microsoft
Sans Serif"/>
<TextBlock x:Name="TB_OnOff" Text="{TemplateBinding Property=OffLabel}" Foreground="White" FontSize="
18" FontFamily="Global
Sans Serif"/>
</StackPanel>
</StackPanel>
</Grid>
</Grid>
</Border>
</Border>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment