ENH: refactor DailyTips

jira: new

1. Refactor the UI:
	put dailytips into slicing notification
	add image for dailytips
	adjust Layout and UI control
	adapts retina scale, adapts dark mode color
2. New Features
	ability to expand/collapse the dailytips
	ability to freely go to next/prev page of dailytips
	show a random dailytip each time when begin to slice
	ability to remember the default statet add .
	of whether expand the dailytips
3. Remove original hintNotification related logic

Change-Id: I99bfa8c19c9417d25cb2f6e205f5e66b7680b189
This commit is contained in:
liz.li 2023-10-18 20:39:18 +08:00 committed by Lane.Wei
parent 16ae34d906
commit dd666a6313
38 changed files with 1349 additions and 387 deletions

View file

@ -134,6 +134,7 @@
#include "PhysicalPrinterDialog.hpp"
#include "PrintHostDialogs.hpp"
#include "PlateSettingsDialog.hpp"
#include "DailyTips.hpp"
using boost::optional;
namespace fs = boost::filesystem;
@ -12871,6 +12872,12 @@ NotificationManager * Plater::get_notification_manager()
return p->notification_manager.get();
}
DailyTipsWindow* Plater::get_dailytips() const
{
static DailyTipsWindow* dailytips_win = new DailyTipsWindow();
return dailytips_win;
}
const NotificationManager * Plater::get_notification_manager() const
{
return p->notification_manager.get();