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
f03ef3eb
Commit
f03ef3eb
authored
Dec 26, 2024
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复 解决 √,标题的返回按钮 一个布局出现第2次,第1个就会没有的问题
parent
c1f8800f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
17 deletions
+53
-17
IconButtonStyle2.xaml
...olLibrary/FLY.ControlLibrary/Themes/IconButtonStyle2.xaml
+23
-11
SectionStyle2.xaml
...ntrolLibrary/FLY.ControlLibrary/Themes/SectionStyle2.xaml
+30
-6
No files found.
Project.FLY.ControlLibrary/FLY.ControlLibrary/Themes/IconButtonStyle2.xaml
View file @
f03ef3eb
...
@@ -83,21 +83,33 @@
...
@@ -83,21 +83,33 @@
<!--圆形确定按钮,绿色, 很多界面使用,例如扫描图 设置界面 -->
<!--圆形确定按钮,绿色, 很多界面使用,例如扫描图 设置界面 -->
<Style TargetType="Button" x:Key="Styles.Button.Apply" BasedOn="{StaticResource Styles.Button.Empty}">
<Style TargetType="Button" x:Key="Styles.Button.Apply" >
<Setter Property="Foreground" Value="#FF31AE15"/>
<Setter Property="Template">
<Setter Property="Margin" Value="{StaticResource ControlMargin}"/>
<Setter Property="HorizontalAlignment" Value="Right"/>
<Setter Property="VerticalAlignment" Value="Top"/>
<Setter Property="Content">
<Setter.Value>
<Setter.Value>
<Grid>
<ControlTemplate TargetType="{x:Type Button}">
<Ellipse Fill="White" Height="90" Width="90"/>
<Grid>
<iconPacks:PackIconMaterial Kind="CheckCircle" HorizontalAlignment="Center" VerticalAlignment="Center" Width="80" Height="auto" />
<Ellipse Fill="White" Height="90" Width="90"/>
</Grid>
<iconPacks:PackIconMaterial Kind="CheckCircle"
HorizontalAlignment="Center" VerticalAlignment="Center" Width="80" Height="auto"
Foreground="#FF31AE15"
/>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsKeyboardFocused" Value="true">
</Trigger>
<Trigger Property="IsEnabled" Value="false">
</Trigger>
<Trigger Property="IsPressed" Value="true">
<Setter Property="Opacity" Value="0.5"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter.Value>
</Setter>
</Setter>
<Setter Property="Margin" Value="{StaticResource ControlMargin}"/>
<Setter Property="HorizontalAlignment" Value="Right"/>
<Setter Property="VerticalAlignment" Value="Top"/>
</Style>
</Style>
<!--矩形图标按钮 内部为iconPacks的按键,下方不可带文字 -->
<!--矩形图标按钮 内部为iconPacks的按键,下方不可带文字 -->
<Style TargetType="Button" x:Key="Styles.Button.Icon.Rectangle">
<Style TargetType="Button" x:Key="Styles.Button.Icon.Rectangle">
<Setter Property="Template">
<Setter Property="Template">
...
...
Project.FLY.ControlLibrary/FLY.ControlLibrary/Themes/SectionStyle2.xaml
View file @
f03ef3eb
...
@@ -59,17 +59,41 @@
...
@@ -59,17 +59,41 @@
<Setter Property="FontSize" Value="30" />
<Setter Property="FontSize" Value="30" />
</Style>
</Style>
<!--标题区,左边的后退键(蓝底白图标)-->
<!--标题区,左边的后退键(蓝底白图标)-->
<Style TargetType="Button" x:Key="Styles.TitleBar.BackButton" BasedOn="{StaticResource Styles.Button.Empty}">
<Style TargetType="Button" x:Key="Styles.TitleBar.BackButton" >
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
Background="{TemplateBinding Background}"
Height="{TemplateBinding Height}"
Width="{TemplateBinding Width}"
>
<iconPacks:PackIconMaterial Kind="ArrowLeftThick" />
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsKeyboardFocused" Value="true">
</Trigger>
<Trigger Property="IsEnabled" Value="false">
</Trigger>
<Trigger Property="IsPressed" Value="true">
<Setter Property="Opacity" Value="0.5"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="Width" Value="80"/>
<Setter Property="Width" Value="80"/>
<Setter Property="Height" Value="80"/>
<Setter Property="Height" Value="80"/>
<Setter Property="Margin" Value="0,24"/>
<Setter Property="Margin" Value="0,24"/>
<Setter Property="Foreground" Value="{StaticResource Brushes.TitleBar.Foreground}"/>
<Setter Property="Foreground" Value="{StaticResource Brushes.TitleBar.Foreground}"/>
<Setter Property="Background" Value="{StaticResource Brushes.TitleBar.Background}"/>
<Setter Property="Background" Value="{StaticResource Brushes.TitleBar.Background}"/>
<Setter Property="Content">
<Setter.Value>
<iconPacks:PackIconMaterial Kind="ArrowLeftThick" />
</Setter.Value>
</Setter>
<Style.Resources>
<Style.Resources>
<Style TargetType="iconPacks:PackIconMaterial" >
<Style TargetType="iconPacks:PackIconMaterial" >
<Setter Property="Width" Value="60"/>
<Setter Property="Width" Value="60"/>
...
...
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