From: penglei <1624952103@qq.com>
Date: Thu, 29 Aug 2024 11:28:10 +0000 (+0800)
Subject: 优化黑曜表盘UI
X-Git-Tag: release_V1.2.70_20241020_135402~549^2~9
X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=d8f342b5c0ff317618512eb275d458815bfcd7ef;p=mirrors%2FFD230.git
优化黑曜表盘UI
---
diff --git a/code/sdk/application/wearable/fd230app/nativelauncher/src/NativeLauncher.cpp b/code/sdk/application/wearable/fd230app/nativelauncher/src/NativeLauncher.cpp
index f88f405fa..925d81e27 100644
--- a/code/sdk/application/wearable/fd230app/nativelauncher/src/NativeLauncher.cpp
+++ b/code/sdk/application/wearable/fd230app/nativelauncher/src/NativeLauncher.cpp
@@ -463,10 +463,11 @@ namespace OHOS
// ConfigModel::GetInstance()->Init();
// åå§åè¯è¨
GraphicStartUp::InitFontEngine(MEM_POOL_UI_FONT, MEM_POOL_UI_FONT_SIZE, OHOS::VECTOR_FONT_DIR, DEFAULT_VECTOR_FONT_FILENAME);
- GraphicStartUp::InitFontEngine(MEM_POOL_UI_FONT, MEM_POOL_UI_FONT_SIZE, OHOS::NEW_FONT_DIR, GILROY_BOLD_FONT); // 注ååä½
+ GraphicStartUp::InitFontEngine(MEM_POOL_UI_FONT, MEM_POOL_UI_FONT_SIZE, OHOS::NEW_FONT_DIR, GILROY_BOLD_FONT); // 注ååä½
+ GraphicStartUp::InitFontEngine(MEM_POOL_UI_FONT, MEM_POOL_UI_FONT_SIZE, OHOS::NEW_FONT_DIR, AUDIOWIDE_REGULAR_FONT); // 注ååä½
#if 0
- GraphicStartUp::InitFontEngine(MEM_POOL_UI_FONT, MEM_POOL_UI_FONT_SIZE, OHOS::NEW_FONT_DIR, SHEEPING_CATS_FONT); // 注ååä½
- GraphicStartUp::InitFontEngine(MEM_POOL_UI_FONT, MEM_POOL_UI_FONT_SIZE, OHOS::NEW_FONT_DIR, GILROY_REGULAR_FONT); // 注ååä½
+ GraphicStartUp::InitFontEngine(MEM_POOL_UI_FONT, MEM_POOL_UI_FONT_SIZE, OHOS::NEW_FONT_DIR, SHEEPING_CATS_FONT); // 注ååä½
+ GraphicStartUp::InitFontEngine(MEM_POOL_UI_FONT, MEM_POOL_UI_FONT_SIZE, OHOS::NEW_FONT_DIR, GILROY_REGULAR_FONT); // 注ååä½
#endif
WEARABLE_LOGI(WEARABLE_LOG_MODULE_LAUNCHER_FWK, "NativeLauncher::InitNativeLauncher");
diff --git a/code/sdk/application/wearable/fd230app/nativeui/main/include/dial/DialModelWeather.h b/code/sdk/application/wearable/fd230app/nativeui/main/include/dial/DialModelWeather.h
index eefd660fe..c5e746336 100644
--- a/code/sdk/application/wearable/fd230app/nativeui/main/include/dial/DialModelWeather.h
+++ b/code/sdk/application/wearable/fd230app/nativeui/main/include/dial/DialModelWeather.h
@@ -2,7 +2,7 @@
* @Author: penglei 1624952103@qq.com
* @Date: 2024-06-07 11:18:25
* @LastEditors: penglei 1624952103@qq.com
- * @LastEditTime: 2024-08-28 11:28:26
+ * @LastEditTime: 2024-08-29 17:52:26
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/main/include/dial/DialModelWeather.h
* @Description:
*
@@ -38,8 +38,8 @@ namespace OHOS
int GetWeatherData(void);
private:
- float Weather_ = 0; // é»è®¤æ´å¤©
- std::string Weather_Str = "25° æ´";
+ float Weather_ = 11; // é»è®¤unkown
+ std::string Weather_Str = "/°";
};
}
#endif
diff --git a/code/sdk/application/wearable/fd230app/nativeui/main/include/dial/DialModelWeatherStr.h b/code/sdk/application/wearable/fd230app/nativeui/main/include/dial/DialModelWeatherStr.h
index 422028936..6aa88a44b 100644
--- a/code/sdk/application/wearable/fd230app/nativeui/main/include/dial/DialModelWeatherStr.h
+++ b/code/sdk/application/wearable/fd230app/nativeui/main/include/dial/DialModelWeatherStr.h
@@ -33,7 +33,7 @@ namespace OHOS
void UpdateWeatherStr(const std::string dialWeatherStr);
private:
- std::string dialWeatherStr_;
+ std::string dialWeatherStr_ = "/°";
};
}
#endif
\ No newline at end of file
diff --git a/code/sdk/build/config/target_config/brandy/mk_fs_image/fd230/fs/user/res/font_library/Audiowide_Regular.ttf b/code/sdk/build/config/target_config/brandy/mk_fs_image/fd230/fs/user/res/font_library/Audiowide_Regular.ttf
new file mode 100644
index 000000000..348817d57
Binary files /dev/null and b/code/sdk/build/config/target_config/brandy/mk_fs_image/fd230/fs/user/res/font_library/Audiowide_Regular.ttf differ
diff --git a/code/sdk/middleware/services/gui/uikit/utils/interfaces/innerkits/graphic_config.h b/code/sdk/middleware/services/gui/uikit/utils/interfaces/innerkits/graphic_config.h
index 07e4f00a2..4f41a4e89 100755
--- a/code/sdk/middleware/services/gui/uikit/utils/interfaces/innerkits/graphic_config.h
+++ b/code/sdk/middleware/services/gui/uikit/utils/interfaces/innerkits/graphic_config.h
@@ -507,6 +507,7 @@ namespace OHOS {
#define GILROY_BOLD_FONT "Gilroy_Bold.ttf"
#define GILROY_MEDIUM_FONT "Gilroy_Medium.ttf"
#define SHEEPING_CATS_FONT "Sheeping_Cats.ttf"
+#define AUDIOWIDE_REGULAR_FONT "Audiowide_Regular.ttf"
#else
#if ENABLE_VECTOR_FONT
#define DEFAULT_VECTOR_FONT_FILENAME "SourceHanSansSC-Regular.otf"
diff --git a/tools/dial_converter_tool/instance/114/obsidianrhythm.xml b/tools/dial_converter_tool/instance/114/obsidianrhythm.xml
index e544170e0..6deae993b 100644
--- a/tools/dial_converter_tool/instance/114/obsidianrhythm.xml
+++ b/tools/dial_converter_tool/instance/114/obsidianrhythm.xml
@@ -10,23 +10,23 @@
-
+
-
+
-
+
-
+
-
+
-
+
@@ -38,11 +38,11 @@
-
+
-
+
-
+