|
@@ -14,7 +14,6 @@
|
|
xmlns:dialogs="clr-namespace:PixiEditor.Views.Dialogs"
|
|
xmlns:dialogs="clr-namespace:PixiEditor.Views.Dialogs"
|
|
x:Class="PixiEditor.Views.Dialogs.PalettesBrowser"
|
|
x:Class="PixiEditor.Views.Dialogs.PalettesBrowser"
|
|
mc:Ignorable="d"
|
|
mc:Ignorable="d"
|
|
- Title="Palettes Browser"
|
|
|
|
WindowStartupLocation="CenterScreen"
|
|
WindowStartupLocation="CenterScreen"
|
|
MinWidth="200"
|
|
MinWidth="200"
|
|
Height="600" Width="850"
|
|
Height="600" Width="850"
|
|
@@ -40,15 +39,15 @@
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
- <dialogs:DialogTitleBar TitleText="Palette Browser" CloseCommand="{x:Static SystemCommands.CloseWindowCommand}"/>
|
|
|
|
|
|
+ <dialogs:DialogTitleBar TitleText="PALETTE_BROWSER" CloseCommand="{x:Static SystemCommands.CloseWindowCommand}"/>
|
|
|
|
|
|
<DockPanel Background="{StaticResource MainColor}" Grid.Row="1">
|
|
<DockPanel Background="{StaticResource MainColor}" Grid.Row="1">
|
|
<StackPanel HorizontalAlignment="Left" Margin="10" Orientation="Horizontal" VerticalAlignment="Center">
|
|
<StackPanel HorizontalAlignment="Left" Margin="10" Orientation="Horizontal" VerticalAlignment="Center">
|
|
- <Label Content="Sort by:" Style="{StaticResource BaseLabel}" VerticalAlignment="Center"/>
|
|
|
|
|
|
+ <Label views:Translator.Key="SORT_BY" Style="{StaticResource BaseLabel}" VerticalAlignment="Center"/>
|
|
<ComboBox x:Name="sortingComboBox" VerticalAlignment="Center" SelectionChanged="SortingComboBox_SelectionChanged">
|
|
<ComboBox x:Name="sortingComboBox" VerticalAlignment="Center" SelectionChanged="SortingComboBox_SelectionChanged">
|
|
- <ComboBoxItem IsSelected="True" Content="Default"/>
|
|
|
|
- <ComboBoxItem Content="Alphabetical"/>
|
|
|
|
- <ComboBoxItem Content="Color Count"/>
|
|
|
|
|
|
+ <ComboBoxItem IsSelected="True" views:Translator.Key="DEFAULT"/>
|
|
|
|
+ <ComboBoxItem views:Translator.Key="ALPHABETICAL"/>
|
|
|
|
+ <ComboBoxItem views:Translator.Key="COLOR_COUNT"/>
|
|
</ComboBox>
|
|
</ComboBox>
|
|
<ToggleButton Margin="10 0 0 0" x:Name="toggleBtn"
|
|
<ToggleButton Margin="10 0 0 0" x:Name="toggleBtn"
|
|
IsChecked="{Binding SortAscending, ElementName=palettesBrowser}"
|
|
IsChecked="{Binding SortAscending, ElementName=palettesBrowser}"
|
|
@@ -74,40 +73,40 @@
|
|
</Image.Style>
|
|
</Image.Style>
|
|
</Image>
|
|
</Image>
|
|
</ToggleButton>
|
|
</ToggleButton>
|
|
- <Label Margin="10 0 0 0" Content="Name:" Style="{StaticResource BaseLabel}" VerticalAlignment="Center"/>
|
|
|
|
|
|
+ <Label Margin="10 0 0 0" views:Translator.Key="NAME" Style="{StaticResource BaseLabel}" VerticalAlignment="Center"/>
|
|
<usercontrols:InputBox
|
|
<usercontrols:InputBox
|
|
Text="{Binding NameFilter, Delay=100, ElementName=palettesBrowser, UpdateSourceTrigger=PropertyChanged}"
|
|
Text="{Binding NameFilter, Delay=100, ElementName=palettesBrowser, UpdateSourceTrigger=PropertyChanged}"
|
|
VerticalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Style="{StaticResource DarkTextBoxStyle}" Width="150" />
|
|
Style="{StaticResource DarkTextBoxStyle}" Width="150" />
|
|
|
|
|
|
- <Label Margin="10 0 0 0" Content="Colors:" Style="{StaticResource BaseLabel}" VerticalAlignment="Center"/>
|
|
|
|
|
|
+ <Label Margin="10 0 0 0" views:Translator.Key="COLORS" Style="{StaticResource BaseLabel}" VerticalAlignment="Center"/>
|
|
<ComboBox x:Name="colorsComboBox" VerticalAlignment="Center" SelectionChanged="ColorsComboBox_SelectionChanged">
|
|
<ComboBox x:Name="colorsComboBox" VerticalAlignment="Center" SelectionChanged="ColorsComboBox_SelectionChanged">
|
|
- <ComboBoxItem IsSelected="True" Content="Any"/>
|
|
|
|
- <ComboBoxItem Content="Max"/>
|
|
|
|
- <ComboBoxItem Content="Min"/>
|
|
|
|
- <ComboBoxItem Content="Exact"/>
|
|
|
|
|
|
+ <ComboBoxItem IsSelected="True" views:Translator.Key="ANY"/>
|
|
|
|
+ <ComboBoxItem views:Translator.Key="MAX"/>
|
|
|
|
+ <ComboBoxItem views:Translator.Key="MIN"/>
|
|
|
|
+ <ComboBoxItem views:Translator.Key="EXACT"/>
|
|
</ComboBox>
|
|
</ComboBox>
|
|
<usercontrols:NumberInput Width="50" VerticalAlignment="Center" Margin="10 0 0 0"
|
|
<usercontrols:NumberInput Width="50" VerticalAlignment="Center" Margin="10 0 0 0"
|
|
FocusNext="True"
|
|
FocusNext="True"
|
|
Value="{Binding ColorsNumber, ElementName=palettesBrowser, Mode=TwoWay}"/>
|
|
Value="{Binding ColorsNumber, ElementName=palettesBrowser, Mode=TwoWay}"/>
|
|
<CheckBox Margin="10 0 0 0" VerticalAlignment="Center"
|
|
<CheckBox Margin="10 0 0 0" VerticalAlignment="Center"
|
|
- IsChecked="{Binding ShowOnlyFavourites, ElementName=palettesBrowser}" Content="Favorites"/>
|
|
|
|
|
|
+ IsChecked="{Binding ShowOnlyFavourites, ElementName=palettesBrowser}" views:Translator.Key="FAVORITES"/>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 10 0">
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 10 0">
|
|
- <Button ToolTip="Add from current palette" Click="AddFromPalette_OnClick" Cursor="Hand" Margin="10 0" Style="{StaticResource ImageButtonStyle}" Width="24" Height="24">
|
|
|
|
|
|
+ <Button views:Translator.TooltipKey="ADD_FROM_CURRENT_PALETTE" Click="AddFromPalette_OnClick" Cursor="Hand" Margin="10 0" Style="{StaticResource ImageButtonStyle}" Width="24" Height="24">
|
|
<Image Source="/Images/Plus-square.png"/>
|
|
<Image Source="/Images/Plus-square.png"/>
|
|
</Button>
|
|
</Button>
|
|
<Button Cursor="Hand" Click="OpenFolder_OnClick" Style="{StaticResource ImageButtonStyle}" Width="24" Height="24"
|
|
<Button Cursor="Hand" Click="OpenFolder_OnClick" Style="{StaticResource ImageButtonStyle}" Width="24" Height="24"
|
|
- ToolTip="Open palettes directory in explorer">
|
|
|
|
|
|
+ views:Translator.TooltipKey="OPEN_PALETTES_DIR_TOOLTIP">
|
|
<Image Source="/Images/Folder.png"/>
|
|
<Image Source="/Images/Folder.png"/>
|
|
</Button>
|
|
</Button>
|
|
- <Button HorizontalAlignment="Right" Margin="10 0 0 0" ToolTip="Browse palettes on Lospec"
|
|
|
|
|
|
+ <Button HorizontalAlignment="Right" Margin="10 0 0 0" views:Translator.TooltipKey="BROWSE_ON_LOSPEC_TOOLTIP"
|
|
Style="{StaticResource ImageButtonStyle}" Width="24" Height="24"
|
|
Style="{StaticResource ImageButtonStyle}" Width="24" Height="24"
|
|
Click="BrowseOnLospec_OnClick"
|
|
Click="BrowseOnLospec_OnClick"
|
|
CommandParameter="https://lospec.com/palette-list">
|
|
CommandParameter="https://lospec.com/palette-list">
|
|
<Image Source="/Images/Globe.png"/>
|
|
<Image Source="/Images/Globe.png"/>
|
|
</Button>
|
|
</Button>
|
|
- <Button HorizontalAlignment="Right" Margin="10 0 0 0" ToolTip="Import from file"
|
|
|
|
|
|
+ <Button HorizontalAlignment="Right" Margin="10 0 0 0" views:Translator.TooltipKey="IMPORT_FROM_FILE_TOOLTIP"
|
|
Style="{StaticResource ImageButtonStyle}" Width="24" Height="24"
|
|
Style="{StaticResource ImageButtonStyle}" Width="24" Height="24"
|
|
Click="ImportFromFile_OnClick">
|
|
Click="ImportFromFile_OnClick">
|
|
<Image Source="/Images/hard-drive.png"/>
|
|
<Image Source="/Images/hard-drive.png"/>
|
|
@@ -115,13 +114,14 @@
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</DockPanel>
|
|
</DockPanel>
|
|
<Grid Grid.Row="2" Margin="10">
|
|
<Grid Grid.Row="2" Margin="10">
|
|
- <TextBlock Text="Couldn't fetch palettes" Foreground="White" FontSize="20" HorizontalAlignment="Center"
|
|
|
|
|
|
+ <TextBlock views:Translator.Key="COULD_NOT_LOAD_PALETTE" Foreground="White" FontSize="20" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" Visibility="{Binding Visibility, Converter={converters:OppositeVisibilityConverter}, ElementName=itemsControl}"/>
|
|
VerticalAlignment="Center" Visibility="{Binding Visibility, Converter={converters:OppositeVisibilityConverter}, ElementName=itemsControl}"/>
|
|
<StackPanel Panel.ZIndex="10" Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="{Binding ElementName=palettesBrowser, Path=SortedResults.Count, Converter={converters:CountToVisibilityConverter}}">
|
|
<StackPanel Panel.ZIndex="10" Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="{Binding ElementName=palettesBrowser, Path=SortedResults.Count, Converter={converters:CountToVisibilityConverter}}">
|
|
- <TextBlock Text="No palettes found." Foreground="White" FontSize="20" TextAlignment="Center"/>
|
|
|
|
|
|
+ <TextBlock views:Translator.Key="NO_PALETTES_FOUND" Foreground="White" FontSize="20" TextAlignment="Center"/>
|
|
<TextBlock Margin="0 10 0 0">
|
|
<TextBlock Margin="0 10 0 0">
|
|
- <Hyperlink Foreground="Gray" Cursor="Hand" FontSize="18" NavigateUri="https://lospec.com/palette-list" RequestNavigate="Hyperlink_OnRequestNavigate">
|
|
|
|
- I heard you can find some here: lospec.com/palette-list
|
|
|
|
|
|
+ <Hyperlink Foreground="Gray" Cursor="Hand" FontSize="18" NavigateUri="https://lospec.com/palette-list"
|
|
|
|
+ RequestNavigate="Hyperlink_OnRequestNavigate">
|
|
|
|
+ <TextBlock views:Translator.Key="LOSPEC_LINK_TEXT"/>
|
|
</Hyperlink>
|
|
</Hyperlink>
|
|
</TextBlock>
|
|
</TextBlock>
|
|
<Image Width="128" Height="128" Source="/Images/Search.png"/>
|
|
<Image Width="128" Height="128" Source="/Images/Search.png"/>
|