Change logo

This commit is contained in:
qianlifeng 2024-04-01 21:47:01 +08:00
parent 61a1b6b04b
commit 0d1ff0ab2a
12 changed files with 2758 additions and 507 deletions

1369
Assets/app.go Normal file

File diff suppressed because it is too large Load Diff

Binary file not shown.

BIN
Assets/app.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
Assets/app.psd Normal file

Binary file not shown.

BIN
Assets/mac/app.icns Normal file

Binary file not shown.

View File

@ -1,4 +1,5 @@
import 'package:fluent_ui/fluent_ui.dart';
import 'package:flutter/services.dart';
import 'package:get/get.dart';
import 'package:wox/components/wox_image_view.dart';
import 'package:wox/modules/setting/wox_setting_controller.dart';
@ -14,15 +15,28 @@ class WoxSettingInstalledPluginView extends GetView<WoxSettingController> {
children: [
Padding(
padding: const EdgeInsets.only(bottom: 20),
child: TextBox(
autofocus: true,
placeholder: 'Search plugins',
padding: const EdgeInsets.all(10),
suffix: const Padding(
padding: EdgeInsets.only(right: 8.0),
child: Icon(FluentIcons.search),
child: RawKeyboardListener(
focusNode: FocusNode(onKey: (FocusNode node, RawKeyEvent event) {
if (event is RawKeyDownEvent) {
switch (event.logicalKey) {
case LogicalKeyboardKey.escape:
controller.hideWindow();
return KeyEventResult.handled;
}
}
return KeyEventResult.ignored;
}),
child: TextBox(
autofocus: true,
placeholder: 'Search plugins',
padding: const EdgeInsets.all(10),
suffix: const Padding(
padding: EdgeInsets.only(right: 8.0),
child: Icon(FluentIcons.search),
),
onChanged: (value) => {controller.onFilterInstalledPlugins(value)},
),
onChanged: (value) => {},
),
),
Expanded(

View File

@ -86,7 +86,6 @@ func (r *SysPlugin) Init(ctx context.Context, initParams plugin.InitParams) {
},
{
Title: "i18n:plugin_sys_open_wox_preferences",
SubTitle: "",
PreventHideAfterAction: true,
Icon: sysSettingIcon,
Action: func(ctx context.Context, actionContext plugin.ActionContext) {
@ -95,7 +94,6 @@ func (r *SysPlugin) Init(ctx context.Context, initParams plugin.InitParams) {
},
{
Title: "i18n:plugin_sys_open_wox_settings",
SubTitle: "",
PreventHideAfterAction: true,
Icon: sysSettingIcon,
Action: func(ctx context.Context, actionContext plugin.ActionContext) {
@ -103,10 +101,8 @@ func (r *SysPlugin) Init(ctx context.Context, initParams plugin.InitParams) {
},
},
{
Title: "i18n:plugin_sys_open_system_settings",
SubTitle: "",
PreventHideAfterAction: true,
Icon: sysSettingIcon,
Title: "i18n:plugin_sys_open_system_settings",
Icon: sysSettingIcon,
Action: func(ctx context.Context, actionContext plugin.ActionContext) {
if util.IsMacOS() {
util.ShellRun("open", "-a", "System Preferences")

View File

@ -21,6 +21,7 @@
"plugin_sys_quit_wox": "Exit",
"plugin_sys_open_wox_preferences": "Open Wox Preferences",
"plugin_sys_open_wox_settings": "Open Wox Settings",
"plugin_sys_open_system_settings": "Open System Settings",
"plugin_websearch_trigger_keyword": "Trigger keyword",
"plugin_websearch_title": "Title",
"plugin_websearch_url": "URL",

View File

@ -21,6 +21,7 @@
"plugin_sys_quit_wox": "退出Wox",
"plugin_sys_open_wox_preferences": "打开Wox设置",
"plugin_sys_open_wox_settings": "打开Wox设置",
"plugin_sys_open_system_settings": "打开系统设置",
"plugin_websearch_trigger_keyword": "关键字",
"plugin_websearch_title": "标题",
"plugin_websearch_url": "网址",

File diff suppressed because it is too large Load Diff

View File

@ -55,8 +55,8 @@ default:
mkdir -p {{name}}.app/Contents/MacOS && \
mkdir -p {{name}}.app/Contents/Resources && \
cp {{name}} {{name}}.app/Contents/MacOS/wox && \
cp ../Assets/Info.plist {{name}}.app/Contents/Info.plist && \
cp ../Assets/app.icns {{name}}.app/Contents/Resources/app.icns && \
cp ../Assets/mac/Info.plist {{name}}.app/Contents/Info.plist && \
cp ../Assets/mac/app.icns {{name}}.app/Contents/Resources/app.icns && \
mv {{name}}.app Wox.app && \
create-dmg Wox.app && \
mv "Wox 2.0.0.dmg" {{name}}.dmg