Skip to content

Commit

Permalink
Missing localization and disabled buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
flabbet committed May 5, 2023
1 parent 29a8f38 commit 272c5e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/PixiEditor/Data/Localization/Languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,8 @@
"BROWSE_PALETTES": "Browse palettes",
"LOAD_PALETTE": "Load palette",
"SAVE_PALETTE": "Save palette",
"DISCARD_PALETTE": "Discard palette",
"DISCARD_PALETTE_CONFIRMATION": "Are you sure you want to discard current palette? This cannot be undone.",
"FAVORITES": "Favorites",
"ADD_FROM_CURRENT_PALETTE": "Add from current palette",
"OPEN_PALETTES_DIR_TOOLTIP": "Open palettes directory in explorer",
Expand Down
8 changes: 5 additions & 3 deletions src/PixiEditor/Views/UserControls/Palettes/PaletteViewer.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,16 @@
<ImageBrush ImageSource="/Images/Folder.png"/>
</Button.Background>
</Button>
<Button Height="24" Width="24" Margin="0, 0, 2.5, 0" Style="{StaticResource ToolButtonStyle}"
Cursor="Hand" views:Translator.TooltipKey="SAVE_PALETTE" Click="SavePalette_OnClick">
<Button Height="24" Width="24" Margin="0, 0, 2.5, 0" Style="{StaticResource ToolButtonStyle}"
IsEnabled="{Binding ElementName=paletteControl, Path=Colors.Count}"
Cursor="Hand" views:Translator.TooltipKey="SAVE_PALETTE" Click="SavePalette_OnClick">
<Button.Background>
<ImageBrush ImageSource="/Images/Save.png"/>
</Button.Background>
</Button>
<Button Height="24" Width="24" Margin="0, 0, 5, 0" Style="{StaticResource ToolButtonStyle}"
Cursor="Hand" ToolTip="Discard Palette" Click="DiscardPalette_OnClick">
IsEnabled="{Binding ElementName=paletteControl, Path=Colors.Count}"
Cursor="Hand" views:Translator.TooltipKey="DISCARD_PALETTE" Click="DiscardPalette_OnClick">
<Button.Background>
<ImageBrush ImageSource="/Images/Trash.png"/>
</Button.Background>
Expand Down

0 comments on commit 272c5e7

Please sign in to comment.