release 1.3.1
@@ -6,8 +6,8 @@ import { preferences } from '@kit.ArkData';
|
||||
struct WidgetSettings {
|
||||
@State selectedStyle: string = 'classic';
|
||||
@State showTime: boolean = true;
|
||||
@State showWeather: boolean = true;
|
||||
@State showQuote: boolean = true;
|
||||
@State showWeather: boolean = false;
|
||||
@State showQuote: boolean = false;
|
||||
@State quoteText: string = '床前明月光,疑是地上霜。';
|
||||
@State authorText: string = '李白《静夜思》';
|
||||
private preference: preferences.Preferences | null = null;
|
||||
@@ -26,11 +26,11 @@ struct WidgetSettings {
|
||||
this.showTime = Boolean(showTimeVal);
|
||||
console.info('[WidgetSettings] showTime raw value: ' + showTimeVal + ', type: ' + typeof showTimeVal + ', parsed: ' + this.showTime);
|
||||
|
||||
const showWeatherVal = await this.preference.get('showWeather', true);
|
||||
const showWeatherVal = await this.preference.get('showWeather', false);
|
||||
this.showWeather = Boolean(showWeatherVal);
|
||||
console.info('[WidgetSettings] showWeather raw value: ' + showWeatherVal + ', type: ' + typeof showWeatherVal + ', parsed: ' + this.showWeather);
|
||||
|
||||
const showQuoteVal = await this.preference.get('showQuote', true);
|
||||
const showQuoteVal = await this.preference.get('showQuote', false);
|
||||
this.showQuote = Boolean(showQuoteVal);
|
||||
|
||||
this.quoteText = await this.preference.get('quote', '床前明月光,疑是地上霜。') as string;
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
},
|
||||
{
|
||||
"name": "EntryAbility_desc",
|
||||
"value": "📜 诗词卡片主程序"
|
||||
"value": "诗词卡片主程序"
|
||||
},
|
||||
{
|
||||
"name": "EntryAbility_label",
|
||||
@@ -18,7 +18,7 @@
|
||||
},
|
||||
{
|
||||
"name": "WidgetFormAbility_label",
|
||||
"value": "📜 每日诗词"
|
||||
"value": "每日诗词"
|
||||
},
|
||||
{
|
||||
"name": "WidgetMenuAbility_desc",
|
||||
@@ -26,23 +26,23 @@
|
||||
},
|
||||
{
|
||||
"name": "WidgetMenuAbility_label",
|
||||
"value": "⚙️ 卡片选项"
|
||||
"value": "情景诗词"
|
||||
},
|
||||
{
|
||||
"name": "shortcut_add_widget",
|
||||
"value": "➕ 笔记"
|
||||
"value": "笔记"
|
||||
},
|
||||
{
|
||||
"name": "shortcut_widget_settings",
|
||||
"value": "🔧 卡片信息"
|
||||
"value": "卡片信息"
|
||||
},
|
||||
{
|
||||
"name": "shortcut_open_app",
|
||||
"value": "📱 打开应用"
|
||||
"value": "打开应用"
|
||||
},
|
||||
{
|
||||
"name": "menu_style_classic",
|
||||
"value": "🎨 经典风格"
|
||||
"value": "经典风格"
|
||||
},
|
||||
{
|
||||
"name": "menu_style_classic_desc",
|
||||
@@ -50,7 +50,7 @@
|
||||
},
|
||||
{
|
||||
"name": "menu_style_modern",
|
||||
"value": "✨ 现代风格"
|
||||
"value": "现代风格"
|
||||
},
|
||||
{
|
||||
"name": "menu_style_modern_desc",
|
||||
@@ -58,7 +58,7 @@
|
||||
},
|
||||
{
|
||||
"name": "menu_style_minimal",
|
||||
"value": "◽ 极简风格"
|
||||
"value": "极简风格"
|
||||
},
|
||||
{
|
||||
"name": "menu_style_minimal_desc",
|
||||
@@ -66,7 +66,7 @@
|
||||
},
|
||||
{
|
||||
"name": "menu_style_elegant",
|
||||
"value": "💎 优雅风格"
|
||||
"value": "优雅风格"
|
||||
},
|
||||
{
|
||||
"name": "menu_style_elegant_desc",
|
||||
@@ -74,27 +74,27 @@
|
||||
},
|
||||
{
|
||||
"name": "widget_display_name_small",
|
||||
"value": "🎋 诗词短句"
|
||||
"value": "诗词短句"
|
||||
},
|
||||
{
|
||||
"name": "widget_display_name_medium",
|
||||
"value": "📖 经典诗词"
|
||||
"value": "经典诗词"
|
||||
},
|
||||
{
|
||||
"name": "widget_display_name_large",
|
||||
"value": "🎨 诗词意境"
|
||||
"value": "诗词意境"
|
||||
},
|
||||
{
|
||||
"name": "widget_desc_small",
|
||||
"value": "📱 小尺寸2x2卡片,展示精选诗词短句"
|
||||
"value": "小尺寸2x2卡片,展示精选诗词短句"
|
||||
},
|
||||
{
|
||||
"name": "widget_desc_medium",
|
||||
"value": "📱 中等尺寸2x4卡片,展示经典诗词作品"
|
||||
"value": "中等尺寸2x4卡片,展示经典诗词作品"
|
||||
},
|
||||
{
|
||||
"name": "widget_desc_large",
|
||||
"value": "📱 大尺寸4x4卡片,完整展示诗词意境"
|
||||
"value": "大尺寸4x4卡片,完整展示诗词意境"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 37 KiB |
BIN
ohos/entry/src/main/resources/base/media/icon_216.png
Normal file
|
After Width: | Height: | Size: 82 KiB |
BIN
ohos/entry/src/main/resources/base/media/icon_48.png
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
ohos/entry/src/main/resources/base/media/icon_512.png
Normal file
|
After Width: | Height: | Size: 425 KiB |
BIN
ohos/entry/src/main/resources/base/media/icon_72.png
Normal file
|
After Width: | Height: | Size: 9.8 KiB |
BIN
ohos/entry/src/main/resources/base/media/icon_96.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
ohos/entry/src/main/resources/base/media/icon_large.png
Normal file
|
After Width: | Height: | Size: 65 KiB |
BIN
ohos/entry/src/main/resources/base/media/icon_small.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
ohos/entry/src/main/resources/base/media/icon_xlarge.png
Normal file
|
After Width: | Height: | Size: 114 KiB |
@@ -6,7 +6,7 @@
|
||||
"icon": "$media:icon",
|
||||
"wants": [
|
||||
{
|
||||
"bundleName": "app.whushu.poes",
|
||||
"bundleName": "app.wushu.poes",
|
||||
"moduleName": "entry",
|
||||
"abilityName": "EntryAbility"
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
},
|
||||
{
|
||||
"name": "EntryAbility_label",
|
||||
"value": "📜 Poetry Card"
|
||||
"value": "Poetry Card"
|
||||
},
|
||||
{
|
||||
"name": "WidgetFormAbility_desc",
|
||||
@@ -18,7 +18,7 @@
|
||||
},
|
||||
{
|
||||
"name": "WidgetFormAbility_label",
|
||||
"value": "📜 Daily Poetry"
|
||||
"value": "Daily Poetry"
|
||||
},
|
||||
{
|
||||
"name": "WidgetMenuAbility_desc",
|
||||
@@ -26,31 +26,31 @@
|
||||
},
|
||||
{
|
||||
"name": "WidgetMenuAbility_label",
|
||||
"value": "⚙️ Widget Options"
|
||||
"value": "Widget Options"
|
||||
},
|
||||
{
|
||||
"name": "widget_display_name_small",
|
||||
"value": "🎋 Poetry Phrase"
|
||||
"value": "Poetry Phrase"
|
||||
},
|
||||
{
|
||||
"name": "widget_display_name_medium",
|
||||
"value": "📖 Classic Poetry"
|
||||
"value": "Classic Poetry"
|
||||
},
|
||||
{
|
||||
"name": "widget_display_name_large",
|
||||
"value": "🎨 Poetry Mood"
|
||||
"value": "Poetry Mood"
|
||||
},
|
||||
{
|
||||
"name": "widget_desc_small",
|
||||
"value": "📱 Small 2x2 card, showing selected poetry phrases"
|
||||
"value": "Small 2x2 card, showing selected poetry phrases"
|
||||
},
|
||||
{
|
||||
"name": "widget_desc_medium",
|
||||
"value": "📱 Medium 2x4 card, showing classic poetry works"
|
||||
"value": "Medium 2x4 card, showing classic poetry works"
|
||||
},
|
||||
{
|
||||
"name": "widget_desc_large",
|
||||
"value": "📱 Large 4x4 card, showing complete poetry mood"
|
||||
"value": "Large 4x4 card, showing complete poetry mood"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@
|
||||
},
|
||||
{
|
||||
"name": "WidgetFormAbility_label",
|
||||
"value": "📜 每日诗词"
|
||||
"value": "每日诗词"
|
||||
},
|
||||
{
|
||||
"name": "WidgetMenuAbility_desc",
|
||||
@@ -26,31 +26,31 @@
|
||||
},
|
||||
{
|
||||
"name": "WidgetMenuAbility_label",
|
||||
"value": "⚙️ 卡片选项"
|
||||
"value": "情景诗词"
|
||||
},
|
||||
{
|
||||
"name": "widget_display_name_small",
|
||||
"value": "🎋 诗词短句"
|
||||
"value": "诗词短句"
|
||||
},
|
||||
{
|
||||
"name": "widget_display_name_medium",
|
||||
"value": "📖 经典诗词"
|
||||
"value": "经典诗词"
|
||||
},
|
||||
{
|
||||
"name": "widget_display_name_large",
|
||||
"value": "🎨 诗词意境"
|
||||
"value": "诗词意境"
|
||||
},
|
||||
{
|
||||
"name": "widget_desc_small",
|
||||
"value": "📱 小尺寸2x2卡片,展示精选诗词短句"
|
||||
"value": "小尺寸2x2卡片,展示精选诗词短句"
|
||||
},
|
||||
{
|
||||
"name": "widget_desc_medium",
|
||||
"value": "📱 中等尺寸2x4卡片,展示经典诗词作品"
|
||||
"value": "中等尺寸2x4卡片,展示经典诗词作品"
|
||||
},
|
||||
{
|
||||
"name": "widget_desc_large",
|
||||
"value": "📱 大尺寸4x4卡片,完整展示诗词意境"
|
||||
"value": "大尺寸4x4卡片,完整展示诗词意境"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||