22 xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33 xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
44 xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
5- xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
6- xmlns : local = " clr-namespace:QuickLook.Plugin.ApkViewer "
7- mc : Ignorable =" d" d : DesignWidth =" 450" Height = " auto " Width = " auto " FontFamily =" Segoe UI" HorizontalAlignment = " Center " VerticalAlignment = " Center " >
5+ xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
6+ Background = " {DynamicResource MainWindowBackground} "
7+ mc : Ignorable =" d" d : DesignWidth =" 450" FontFamily =" Segoe UI" >
88
99 <UserControl .Resources>
10- <SolidColorBrush x : Key =" TextForeground" Color =" Black" />
10+ <ResourceDictionary >
11+ <ResourceDictionary .MergedDictionaries>
12+ <ResourceDictionary Source =" /QuickLook.Common;component/Styles/MainWindowStyles.xaml" />
13+ </ResourceDictionary .MergedDictionaries>
1114
12- <Style x : Key =" CommonStyle" TargetType =" Control" >
13- <Setter Property =" Height" Value =" 30" />
14- <Setter Property =" FontSize" Value =" 14" />
15- <Setter Property =" FontFamily" Value =" Segoe UI" />
16- <Setter Property =" Foreground" Value =" {DynamicResource TextForeground }" />
17- </Style >
15+ <Style x : Key =" CommonStyle" TargetType =" Control" >
16+ <Setter Property =" Height" Value =" 30" />
17+ <Setter Property =" FontSize" Value =" 14" />
18+ <Setter Property =" FontFamily" Value =" Segoe UI" />
19+ <Setter Property =" Foreground" Value =" {DynamicResource WindowTextForeground }" />
20+ </Style >
1821
19- <Style x : Key =" StaticLabel" TargetType =" Label" BasedOn =" {StaticResource CommonStyle}" >
20- <Setter Property =" Width" Value =" 130" />
21- <Setter Property =" FontWeight" Value =" Bold" />
22- <Setter Property =" HorizontalAlignment" Value =" Left" />
23- <Setter Property =" VerticalAlignment" Value =" Center" />
24- </Style >
22+ <Style x : Key =" StaticLabel" TargetType =" Label" BasedOn =" {StaticResource CommonStyle}" >
23+ <Setter Property =" Width" Value =" 130" />
24+ <Setter Property =" FontWeight" Value =" Bold" />
25+ <Setter Property =" HorizontalAlignment" Value =" Left" />
26+ <Setter Property =" VerticalAlignment" Value =" Center" />
27+ </Style >
2528
26- <Style x : Key =" SelectableLabel" TargetType =" TextBox" BasedOn =" {StaticResource CommonStyle}" >
27- <Setter Property =" BorderThickness" Value =" 0" />
28- <Setter Property =" Background" Value =" Transparent" />
29- <Setter Property =" SelectionBrush" Value =" #007BFF" />
30- <Setter Property =" SelectionOpacity" Value =" 0.3" />
31- <Setter Property =" FocusVisualStyle" Value =" {x:Null}" />
32- <Setter Property =" TextWrapping" Value =" NoWrap" />
33- <Setter Property =" IsReadOnly" Value =" True" />
34- <Setter Property =" VerticalAlignment" Value =" Center" />
35- <Setter Property =" VerticalContentAlignment" Value =" Center" />
36- <Setter Property =" HorizontalContentAlignment" Value =" Left" />
37- </Style >
29+ <Style x : Key =" SelectableLabel" TargetType =" TextBox" BasedOn =" {StaticResource CommonStyle}" >
30+ <Setter Property =" BorderThickness" Value =" 0" />
31+ <Setter Property =" Background" Value =" Transparent" />
32+ <Setter Property =" SelectionBrush" Value =" #007BFF" />
33+ <Setter Property =" SelectionOpacity" Value =" 0.3" />
34+ <Setter Property =" FocusVisualStyle" Value =" {x:Null}" />
35+ <Setter Property =" TextWrapping" Value =" NoWrap" />
36+ <Setter Property =" IsReadOnly" Value =" True" />
37+ <Setter Property =" VerticalAlignment" Value =" Center" />
38+ <Setter Property =" VerticalContentAlignment" Value =" Center" />
39+ <Setter Property =" HorizontalContentAlignment" Value =" Left" />
40+ </Style >
3841
39- <Style x : Key =" HoverableLabel" TargetType =" TextBox" BasedOn =" {StaticResource SelectableLabel}" >
40- <Setter Property =" Width" Value =" Auto" />
41- <Style .Triggers>
42- <Trigger Property =" IsMouseOver" Value =" True" >
43- <Setter Property =" Background" Value =" #FF333333" />
44- <Setter Property =" Foreground" Value =" #FFFFFFFF" />
45- </Trigger >
46- </Style .Triggers>
47- </Style >
48-
49- <BitmapImage x : Key =" DarkSwImage" UriSource =" pack://application:,,,/QuickLook.Plugin.ApkViewer;component/images/black_btn.png" />
50- <BitmapImage x : Key =" LightSwImage" UriSource =" pack://application:,,,/QuickLook.Plugin.ApkViewer;component/images/white_btn.png" />
51- <BitmapImage x : Key =" DefaultIcon" UriSource =" pack://application:,,,/QuickLook.Plugin.ApkViewer;component/images/default_icon.png" />
42+ <Style x : Key =" HoverableLabel" TargetType =" TextBox" BasedOn =" {StaticResource SelectableLabel}" >
43+ <Setter Property =" Width" Value =" Auto" />
44+ <Style .Triggers>
45+ <Trigger Property =" IsMouseOver" Value =" True" >
46+ <Setter Property =" Background" Value =" {DynamicResource CaptionButtonHoverBackground}" />
47+ <Setter Property =" Foreground" Value =" {DynamicResource CaptionButtonIconForeground}" />
48+ </Trigger >
49+ </Style .Triggers>
50+ </Style >
5251
52+ <BitmapImage x : Key =" DefaultIcon" UriSource =" images/default_icon.png" />
53+ </ResourceDictionary >
5354 </UserControl .Resources>
5455
55- <Grid >
56+ <Grid HorizontalAlignment = " Center " VerticalAlignment = " Center " >
5657 <Grid .RowDefinitions>
5758 <RowDefinition Height =" Auto" />
5859 <RowDefinition Height =" Auto" />
6566 </Grid .ColumnDefinitions>
6667
6768 <Grid >
68- <Image x : Name =" image" Source =" {StaticResource DefaultIcon}" Cursor =" Hand" Height =" 210" Width =" 210" VerticalAlignment =" Center" HorizontalAlignment =" Center" />
69+ <Image x : Name =" image" Source =" {StaticResource DefaultIcon}"
70+ Cursor =" Hand" Height =" 210" Width =" 210"
71+ VerticalAlignment =" Center" HorizontalAlignment =" Center" />
6972 </Grid >
7073
71- <StackPanel Name =" labels" Grid.Column=" 1" HorizontalAlignment =" Left" VerticalAlignment =" Top" Margin =" 5,0" >
74+ <StackPanel Name =" labels" Grid.Column=" 1" Margin =" 5,0"
75+ HorizontalAlignment =" Left" VerticalAlignment =" Top" >
7276 <Label Content =" Application name:" Style =" {StaticResource StaticLabel}" />
7377 <Label Content =" Package name:" Style =" {StaticResource StaticLabel}" />
7478 <Label Content =" Version name:" Style =" {StaticResource StaticLabel}" />
9296 <TextBox x : Name =" tbPckSize" Text =" ..." Width =" auto" Style =" {StaticResource SelectableLabel}" MouseDoubleClick =" SelectableLabel_MouseDoubleClick" VerticalAlignment =" Center" HorizontalAlignment =" Left" />
9397 </StackPanel >
9498
95- <Image x : Name =" btnSwTheme" Height =" 20" Width =" 20" Source =" {StaticResource DarkSwImage}" Cursor =" Hand" ToolTip =" Switch theme" Grid.Column=" 3" HorizontalAlignment =" Left" VerticalAlignment =" Top" Margin =" 10" />
99+ <Image x : Name =" btnSwTheme" Height =" 20" Width =" 20" Margin =" 10"
100+ Cursor =" Hand" ToolTip =" Switch theme" Grid.Column=" 3"
101+ HorizontalAlignment =" Left" VerticalAlignment =" Top" >
102+ <Image .Style>
103+ <Style >
104+ <Style .Triggers>
105+ <DataTrigger Binding =" {Binding ElementName=ViewerPanel,Path=Theme}" Value =" Light" >
106+ <!-- Black image on light theme -->
107+ <Setter Property =" Image.Source" >
108+ <Setter .Value>
109+ <BitmapImage UriSource =" images/black_btn.png" />
110+ </Setter .Value>
111+ </Setter >
112+ </DataTrigger >
113+ <DataTrigger Binding =" {Binding ElementName=ViewerPanel,Path=Theme}" Value =" Dark" >
114+ <Setter Property =" Image.Source" >
115+ <Setter .Value>
116+ <BitmapImage UriSource =" images/white_btn.png" />
117+ </Setter .Value>
118+ </Setter >
119+ </DataTrigger >
120+ </Style .Triggers>
121+ </Style >
122+ </Image .Style>
123+ </Image >
96124
97- <GroupBox x : Name =" panelPermission" Header =" Permissions" BorderBrush =" {DynamicResource TextForeground}" Foreground =" {DynamicResource TextForeground}" BorderThickness =" 1" Grid.Column=" 0" Grid.Row=" 1" Grid.ColumnSpan=" 4" Margin =" 10" Height =" 150" VerticalAlignment =" Top" >
125+ <GroupBox x : Name =" panelPermission" Header =" Permissions" VerticalAlignment =" Top"
126+ BorderBrush =" {DynamicResource WindowTextForeground}"
127+ Foreground =" {DynamicResource WindowTextForeground}"
128+ BorderThickness =" 1" Margin =" 10" Height =" 150"
129+ Grid.Column=" 0" Grid.Row=" 1" Grid.ColumnSpan=" 4" >
98130 <ScrollViewer Focusable =" False" >
99131 <StackPanel x : Name =" permissionStack" />
100132 </ScrollViewer >
101133 </GroupBox >
102-
103134 </Grid >
104-
105135</UserControl >
0 commit comments