mirror of
https://github.com/LorisYounger/VPet.ModMaker.git
synced 2024-08-30 18:22:21 +00:00
更新主题
This commit is contained in:
parent
2073a7d873
commit
46f4709fb7
@ -55,5 +55,5 @@ public class ModMakeHistory
|
||||
/// 最后编辑时间
|
||||
/// </summary>
|
||||
[Line(ignoreCase: true)]
|
||||
public DateTime LastTime { get; set; }
|
||||
public DateTime LastTime { get; set; } = DateTime.Now;
|
||||
}
|
||||
|
@ -27,4 +27,8 @@
|
||||
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
||||
<Setter Property="VerticalContentAlignment" Value="Top" />
|
||||
</Style>
|
||||
<Style x:Key="WindowXStyle" TargetType="pu:WindowX">
|
||||
<Setter Property="pu:WindowXCaption.Background" Value="{DynamicResource DARKPrimary}" />
|
||||
<Setter Property="pu:WindowXCaption.Foreground" Value="{DynamicResource DARKPrimaryText}" />
|
||||
</Style>
|
||||
</ResourceDictionary>
|
@ -18,7 +18,10 @@
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<TextBox pu:TextBoxHelper.Watermark="{ll:Str 搜索Id}" Text="{Binding Search.Value, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<TextBox
|
||||
pu:TextBoxHelper.Watermark="{ll:Str 搜索Id}"
|
||||
Style="{DynamicResource StandardTextBoxStyle}"
|
||||
Text="{Binding Search.Value, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<DataGrid
|
||||
Grid.Row="1"
|
||||
d:ItemsSource="{d:SampleData ItemCount=5}"
|
||||
|
@ -18,7 +18,10 @@
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<TextBox pu:TextBoxHelper.Watermark="{ll:Str 搜索Id}" Text="{Binding Search.Value, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<TextBox
|
||||
pu:TextBoxHelper.Watermark="{ll:Str 搜索Id}"
|
||||
Style="{DynamicResource StandardTextBoxStyle}"
|
||||
Text="{Binding Search.Value, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<DataGrid
|
||||
Grid.Row="1"
|
||||
d:ItemsSource="{d:SampleData ItemCount=5}"
|
||||
|
@ -18,7 +18,10 @@
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<TextBox pu:TextBoxHelper.Watermark="{ll:Str 搜索Id}" Text="{Binding Search.Value, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<TextBox
|
||||
pu:TextBoxHelper.Watermark="{ll:Str 搜索Id}"
|
||||
Style="{DynamicResource StandardTextBoxStyle}"
|
||||
Text="{Binding Search.Value, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<DataGrid
|
||||
x:Name="DataGrid_LowText"
|
||||
Grid.Row="1"
|
||||
|
@ -18,7 +18,10 @@
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<TextBox pu:TextBoxHelper.Watermark="{ll:Str 搜索Id}" Text="{Binding Search.Value, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<TextBox
|
||||
pu:TextBoxHelper.Watermark="{ll:Str 搜索Id}"
|
||||
Style="{DynamicResource StandardTextBoxStyle}"
|
||||
Text="{Binding Search.Value, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<DataGrid
|
||||
Grid.Row="1"
|
||||
d:ItemsSource="{d:SampleData ItemCount=5}"
|
||||
|
@ -13,10 +13,10 @@
|
||||
d:DesignHeight="450"
|
||||
d:DesignWidth="800"
|
||||
mc:Ignorable="d">
|
||||
<Page.Resources>
|
||||
<ResourceDictionary Source="/VPet-Simulator.Windows.Interface;component/ResourceStyle.xaml" />
|
||||
</Page.Resources>
|
||||
<Grid>
|
||||
<Page.Resources>
|
||||
<ResourceDictionary Source="/VPet-Simulator.Windows.Interface;component/ResourceStyle.xaml" />
|
||||
</Page.Resources>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition />
|
||||
@ -39,14 +39,14 @@
|
||||
</TextBox.Style>
|
||||
</TextBox>
|
||||
<ComboBox
|
||||
MinWidth="150"
|
||||
x:Name="ComboBox_Pet"
|
||||
Grid.Column="1"
|
||||
MinWidth="150"
|
||||
pu:ComboBoxHelper.Watermark="{ll:Str 选择宠物}"
|
||||
DisplayMemberPath="Id.Value"
|
||||
ItemsSource="{Binding Pets}"
|
||||
Style="{DynamicResource StandardComboBoxStyle}"
|
||||
SelectedItem="{Binding CurrentPet.Value}">
|
||||
SelectedItem="{Binding CurrentPet.Value}"
|
||||
Style="{DynamicResource StandardComboBoxStyle}">
|
||||
<ComboBox.ItemContainerStyle>
|
||||
<Style BasedOn="{StaticResource {x:Type ComboBoxItem}}" TargetType="ComboBoxItem">
|
||||
<Setter Property="ToolTip" Value="{Binding CurrentI18nData.Value.Name.Value}" />
|
||||
|
@ -1,4 +1,4 @@
|
||||
<Window
|
||||
<pu:WindowX
|
||||
x:Class="VPet.ModMaker.Views.ModMakerWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
@ -13,12 +13,13 @@
|
||||
Height="450"
|
||||
d:DataContext="{d:DesignInstance Type=vm:ModMakerWindowVM}"
|
||||
FontSize="16"
|
||||
Style="{DynamicResource WindowXStyle}"
|
||||
WindowStartupLocation="CenterScreen"
|
||||
mc:Ignorable="d">
|
||||
<Window.Resources>
|
||||
<ResourceDictionary Source="/VPet-Simulator.Windows.Interface;component/ResourceStyle.xaml" />
|
||||
</Window.Resources>
|
||||
<Grid>
|
||||
<Window.Resources>
|
||||
<ResourceDictionary Source="/VPet-Simulator.Windows.Interface;component/ResourceStyle.xaml" />
|
||||
</Window.Resources>
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
@ -35,17 +36,21 @@
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBox pu:TextBoxHelper.Watermark="{ll:Str 最近的内容}" Text="{Binding HistoriesSearchText.Value}" />
|
||||
<TextBox
|
||||
pu:TextBoxHelper.Watermark="{ll:Str 最近的内容}"
|
||||
Style="{DynamicResource StandardTextBoxStyle}"
|
||||
Text="{Binding HistoriesSearchText.Value}" />
|
||||
<Button
|
||||
Grid.Column="1"
|
||||
Command="{Binding ClearHistoriesCommand}"
|
||||
Content="{ll:Str 清空历史}" />
|
||||
Content="{ll:Str 清空历史}"
|
||||
Style="{StaticResource ThemedButtonStyle}" />
|
||||
</Grid>
|
||||
<ListBox
|
||||
Grid.Row="2"
|
||||
d:ItemsSource="{d:SampleData ItemCount=5}"
|
||||
ItemsSource="{Binding ShowHistories.Value}"
|
||||
Style="{StaticResource SideMenuListBoxStyle}">
|
||||
Style="{DynamicResource SideMenuListBoxStyle}">
|
||||
<ListBox.ItemContainerStyle>
|
||||
<Style BasedOn="{StaticResource {x:Type ListBoxItem}}" TargetType="ListBoxItem">
|
||||
<Setter Property="Height" Value="64" />
|
||||
@ -110,12 +115,14 @@
|
||||
<Button
|
||||
x:Name="Button_CreateNewMod"
|
||||
Command="{Binding CreateNewModCommand}"
|
||||
Content="{ll:Str 创建新的模组}" />
|
||||
Content="{ll:Str 创建新的模组}"
|
||||
Style="{DynamicResource ThemedButtonStyle}" />
|
||||
<Button
|
||||
x:Name="Button_OpenFromFile"
|
||||
Command="{Binding LoadModFromFileCommand}"
|
||||
Content="{ll:Str 从文件中载入}" />
|
||||
Content="{ll:Str 从文件中载入}"
|
||||
Style="{DynamicResource ThemedButtonStyle}" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Window>
|
||||
</pu:WindowX>
|
||||
|
@ -1,5 +1,6 @@
|
||||
using LinePutScript;
|
||||
using LinePutScript.Localization.WPF;
|
||||
using Panuon.WPF.UI;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
@ -26,7 +27,7 @@ namespace VPet.ModMaker.Views;
|
||||
/// <summary>
|
||||
/// winModMaker.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class ModMakerWindow : Window
|
||||
public partial class ModMakerWindow : WindowX
|
||||
{
|
||||
public ModMakerWindowVM ViewModel => (ModMakerWindowVM)DataContext;
|
||||
public ModEditWindow ModEditWindow { get; set; }
|
||||
|
Loading…
Reference in New Issue
Block a user