FIX: dailytips display issue

jira: STUDIO-4980、STUDIO-4981

1. STUDIO-4980 fix that there is a incorrect image display in first page of dailytips
2. STUDIO-4981 fix some UI element display issue in dark mode: expand
   button color、image tint color
3. modify some tips content provided by salt.wei

Change-Id: Ie85da2f049b89f0358b19f587ce7aa7cce0164c7
This commit is contained in:
liz.li
2023-10-27 19:38:29 +08:00
committed by Lane.Wei
parent eb9f43c144
commit c076fb347e
14 changed files with 59 additions and 40 deletions

View File

@@ -18,6 +18,7 @@ public:
DailyTipsPanel(const ImVec2& pos, const ImVec2& size, bool can_expand = true);
void set_position(const ImVec2& pos);
void set_size(const ImVec2& size);
void set_can_expand(bool can_expand);
ImVec2 get_size();
void render();
void retrieve_data_from_hint_database(HintDataNavigation nav);
@@ -25,6 +26,7 @@ public:
void collapse();
bool is_expanded();
void set_scale(float scale);
void on_change_color_mode(bool is_dark);
protected:
void render_header(const ImVec2& pos, const ImVec2& size);
@@ -47,6 +49,7 @@ private:
int m_uid;
bool m_first_enter{ false };
float m_scale = 1.0f;
bool m_is_dark{ false };
};
class DailyTipsWindow {