File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -105,6 +105,8 @@ protected override async void OnExit(ExitEventArgs e)
105105 host . Dispose ( ) ;
106106 }
107107
108+ public static string AppName => nameof ( OpenGptChat ) ;
109+
108110
109111 public static IRelayCommand ShowAppCommand =
110112 new RelayCommand ( ShowApp ) ;
Original file line number Diff line number Diff line change 5757
5858 <tb : TaskbarIcon Name =" appIcon"
5959 IconSource =" assets/images/openai.ico"
60- ToolTipText =" OpenChat "
60+ ToolTipText =" {x:Static local:App.AppName} "
6161 LeftClickCommand =" {x:Static local:App.ShowAppCommand}"
6262 DoubleClickCommand =" {x:Static local:App.ShowAppCommand}"
6363 DataContext =" {Binding}" >
6464
6565 <tb : TaskbarIcon .TrayToolTip>
66- <Border Background =" #eff3f5" BorderBrush =" #eaeaea" BorderThickness =" 1" CornerRadius =" 3" Padding =" 5" >
67- <TextBlock Text =" OpenChat" />
66+ <Border Background =" {DynamicResource GeneralBackground}"
67+ BorderBrush =" {DynamicResource GeneralBorder}" BorderThickness =" 1" CornerRadius =" 3" Padding =" 5" >
68+ <TextBlock Text =" {x:Static local:App.AppName}" />
6869 </Border >
6970 </tb : TaskbarIcon .TrayToolTip>
7071
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ public AppWindowModel(ConfigurationService configurationService)
1111 ConfigurationService = configurationService ;
1212 }
1313
14- public string ApplicationTitle { get ; } = nameof ( OpenGptChat ) ;
14+ public string ApplicationTitle => App . AppName ;
1515
1616 public ConfigurationService ConfigurationService { get ; }
1717
Original file line number Diff line number Diff line change 1717 <utilities : BindingProxy x : Key =" PageSelf" Data =" {Binding}" />
1818 </Page .Resources>
1919
20+ <Page .InputBindings>
21+ <KeyBinding Modifiers =" Ctrl" Key =" R" Command =" {Binding ResetChatCommand}" />
22+ </Page .InputBindings>
23+
2024 <Grid >
2125 <Grid .RowDefinitions>
2226 <RowDefinition Height =" Auto" />
You can’t perform that action at this time.
0 commit comments