Skip to content

Commit 64549cc

Browse files
committed
Updated memory viewer toolbar style
1 parent b5c0981 commit 64549cc

5 files changed

Lines changed: 18 additions & 20 deletions

File tree

ZXBStudio/App.axaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,6 @@
9595
<Setter Property="CornerRadius" Value="4" />
9696
<Setter Property="Focusable" Value="False"></Setter>
9797
</Style>
98-
<Style Selector="ToggleButton.checked">
99-
<Setter Property="Background" Value="#ffb0b0b0" />
100-
<Setter Property="Width" Value="24" />
101-
<Setter Property="Height" Value="24" />
102-
<Setter Property="Padding" Value="2" />
103-
<Setter Property="CornerRadius" Value="4" />
104-
<Setter Property="Focusable" Value="False"></Setter>
105-
</Style>
10698
<Style Selector="Button.toolbar:disabled">
10799
<Setter Property="Background" Value="#ff606060" />
108100
<Setter Property="BorderBrush" Value="#ff606060" />

ZXBStudio/DebuggingTools/Memory/Controls/ZXMemoryView.axaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,27 +27,27 @@
2727
<Grid RowDefinitions="auto,*">
2828
<Grid ColumnDefinitions="2*,16*">
2929
<StackPanel Grid.Row="0" Spacing="2" Orientation="Horizontal" Margin="2" HorizontalAlignment="Center">
30-
<ToggleButton Classes="dialog" Name="btnMemoryAddressHexFormat" IsChecked="{Binding Path=!#MemoryDecimalMode}" ToolTip.Tip="Display memory address as Hexadecimal">
31-
Hex
30+
<ToggleButton FontWeight="Bold" Width="30" Foreground="Black" Classes="toolbar" Name="btnMemoryAddressHexFormat" IsChecked="{Binding Path=!#MemoryDecimalMode}" ToolTip.Tip="Display memory address as Hexadecimal">
31+
0x0
3232
</ToggleButton>
33-
<ToggleButton Classes="dialog" Name="btnMemoryAddressDecFormat" IsChecked="{Binding Path=#MemoryDecimalMode}" ToolTip.Tip="Display memory address as Decimal">
34-
Dec
33+
<ToggleButton FontWeight="Bold" Width="30" Foreground="Black" Classes="toolbar" Name="btnMemoryAddressDecFormat" IsChecked="{Binding Path=#MemoryDecimalMode}" ToolTip.Tip="Display memory address as Decimal">
34+
00
3535
</ToggleButton>
3636
</StackPanel>
3737
<StackPanel Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Center">
38-
<ToggleButton Classes="dialog" Name="btnSwitchHexFormat" IsChecked="{Binding Path=!#ASCIIMode}" ToolTip.Tip="Display memory content as HEX">
39-
Hex
38+
<ToggleButton FontWeight="Bold" Width="30" Foreground="Black" Classes="toolbar" Name="btnSwitchHexFormat" IsChecked="{Binding Path=!#ASCIIMode}" ToolTip.Tip="Display memory content as HEX">
39+
0x0
4040
</ToggleButton>
41-
<ToggleButton Classes="dialog" Name="btnSwitchASCIIFormat" IsChecked="{Binding Path=#ASCIIMode}" ToolTip.Tip="Display memory content as ASCII">
42-
ASCII
41+
<ToggleButton Margin="2,0,0,0" FontWeight="Bold" Width="30" Foreground="Black" Classes="toolbar" Name="btnSwitchASCIIFormat" IsChecked="{Binding Path=#ASCIIMode}" ToolTip.Tip="Display memory content as ASCII">
42+
Ab
4343
</ToggleButton>
44-
<Border Classes="numericBorder" Margin="24,0,5,0">
45-
<NumericUpDown Margin="3,0" MinWidth="80" Classes="dialog" VerticalAlignment="Center"
44+
<NumericUpDown Background="#303030" Height="24" Margin="15,0,5,0" MinWidth="80" Classes="dialog" VerticalAlignment="Center"
4645
HorizontalAlignment="Left" ParsingNumberStyle="Integer" Increment="1" Minimum="0"
4746
Maximum="65535" Value="0" Name="nudAddress">
4847
</NumericUpDown>
49-
</Border>
50-
<Button Classes="dialog" VerticalAlignment="Center" HorizontalAlignment="Right" Padding="7" Name="btnGoto">Goto</Button>
48+
<Button Classes="toolbar" VerticalAlignment="Center" HorizontalAlignment="Right" Name="btnGoto" ToolTip.Tip="Go to address">
49+
<svg:Svg Path="/Svg/magnifying-glass-arrow-right-solid.svg"></svg:Svg>
50+
</Button>
5151
</StackPanel>
5252
</Grid>
5353
<Grid Grid.Row="1" ColumnDefinitions="*,32">
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

ZXBStudio/ZXBasicStudio.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@
170170
<None Remove="Svg\layout-full-solid.svg" />
171171
<None Remove="Svg\layout-play-solid.svg" />
172172
<None Remove="Svg\list-ol-solid.svg" />
173+
<None Remove="Svg\magnifying-glass-arrow-right-solid.svg" />
173174
<None Remove="Svg\magnifying-glass-location-solid.svg" />
175+
<None Remove="Svg\magnifying-glass-solid.svg" />
174176
<None Remove="Svg\maximize-solid.svg" />
175177
<None Remove="Svg\minimize-solid.svg" />
176178
<None Remove="Svg\minus-solid.svg" />
@@ -332,6 +334,8 @@
332334
<AvaloniaResource Include="Svg\circle-info-solid.svg" />
333335
<AvaloniaResource Include="Svg\circle-question-solid.svg" />
334336
<AvaloniaResource Include="Svg\github.svg" />
337+
<AvaloniaResource Include="Svg\magnifying-glass-arrow-right-solid.svg" />
338+
<AvaloniaResource Include="Svg\magnifying-glass-solid.svg" />
335339
<AvaloniaResource Include="Svg\White\circle-info-solid.svg" />
336340
<AvaloniaResource Include="Svg\White\circle-question-solid.svg" />
337341
<AvaloniaResource Include="Svg\White\exit-solid.svg" />

0 commit comments

Comments
 (0)