|
124 | 124 | </suki:GroupBox> |
125 | 125 | </suki:GlassCard> |
126 | 126 | <!-- 许可�? --> |
127 | | - <suki:GlassCard Padding="20,13,30,-13" |
| 127 | + |
| 128 | + <suki:GlassCard Padding="22,8,25,8" |
128 | 129 | IsVisible="{Binding HasResourceLicense}"> |
129 | | - <suki:GroupBox> |
130 | | - <suki:GroupBox.Header> |
131 | | - <DockPanel> |
132 | | - <StackPanel Orientation="Horizontal" |
133 | | - DockPanel.Dock="Left"> |
| 130 | + <DockPanel> |
| 131 | + <Button Click="ShowLicense_Click" BorderBrush="Transparent" |
| 132 | + BorderThickness="0" |
| 133 | + Content="{markupExtensions:FluentIcon Icon=Send, |
| 134 | + IconSize=Size16}" |
| 135 | + DockPanel.Dock="Right" |
| 136 | + Height="40" |
| 137 | + HorizontalAlignment="Center" |
| 138 | + Margin="0,0,4,0"/> |
| 139 | + <StackPanel HorizontalAlignment="Left" |
| 140 | + VerticalAlignment="Center" |
| 141 | + Orientation="Horizontal"> |
134 | 142 | <ContentControl Content="{markupExtensions:FluentIcon Icon=Certificate, IconSize=Size20}" /> |
135 | 143 | <TextBlock Text="{markup:I18n {x:Static helper:LangKeys.LicenseInfo}}" |
136 | 144 | FontSize="16" |
137 | 145 | FontWeight="SemiBold" |
138 | 146 | VerticalAlignment="Center" /> |
139 | | - </StackPanel> |
140 | | - <ToggleButton Name="LicenseToggle" |
141 | | - IsChecked="False" |
142 | | - DockPanel.Dock="Right" |
143 | | - HorizontalAlignment="Right" |
144 | | - Background="Transparent" |
145 | | - BorderThickness="0"> |
146 | | - <Panel> |
147 | | - <ContentControl Content="{markupExtensions:FluentIcon Icon=ChevronDown, IconSize=Size16}" |
148 | | - Foreground="{DynamicResource SukiText}" |
149 | | - IsVisible="{Binding !IsChecked, ElementName=LicenseToggle}" /> |
150 | | - <ContentControl Content="{markupExtensions:FluentIcon Icon=ChevronUp, IconSize=Size16}" |
151 | | - Foreground="{DynamicResource SukiText}" |
152 | | - IsVisible="{Binding IsChecked, ElementName=LicenseToggle}" /> |
153 | | - </Panel> |
154 | | - </ToggleButton> |
155 | | - </DockPanel> |
156 | | - </suki:GroupBox.Header> |
157 | | - <Border MaxHeight="500" |
158 | | - Padding="10,5" |
159 | | - Margin="0,0,0,20" |
160 | | - IsVisible="{Binding IsChecked, ElementName=LicenseToggle}"> |
161 | | - <ScrollViewer HorizontalScrollBarVisibility="Disabled" |
162 | | - VerticalScrollBarVisibility="Auto"> |
163 | | - <full:MarkdownScrollViewer Markdown="{Binding ResourceLicense}" |
164 | | - VerticalAlignment="Top"> |
165 | | - <full:MarkdownScrollViewer.Engine> |
166 | | - <extensions:MarkdownExtension /> |
167 | | - </full:MarkdownScrollViewer.Engine> |
168 | | - <full:MarkdownScrollViewer.Plugins> |
169 | | - <StaticResource ResourceKey="MdXamlPlugin" /> |
170 | | - </full:MarkdownScrollViewer.Plugins> |
171 | | - <full:MarkdownScrollViewer.Styles> |
172 | | - <StyleInclude Source="avares://MFAAvalonia/Assets/Style/MdXamlDocStyle.axaml" /> |
173 | | - <StyleInclude Source="avares://MFAAvalonia/Assets/Style/MdXamlStyles.axaml" /> |
174 | | - </full:MarkdownScrollViewer.Styles> |
175 | | - </full:MarkdownScrollViewer> |
176 | | - </ScrollViewer> |
177 | | - </Border> |
178 | | - </suki:GroupBox> |
| 147 | + </StackPanel> |
| 148 | + </DockPanel> |
179 | 149 | </suki:GlassCard> |
180 | 150 | <suki:GlassCard Padding="25,8,25,8"> |
181 | 151 | <DockPanel> |
|
0 commit comments