mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-02 08:09:47 +08:00
@@ -44,10 +44,7 @@ abstract final class PageUtils {
|
||||
RouteObserver<PageRoute>();
|
||||
|
||||
static RelativeRect menuPosition(Offset offset) {
|
||||
final uiScale = Pref.uiScale;
|
||||
final dx = offset.dx / uiScale;
|
||||
final dy = offset.dy / uiScale;
|
||||
return .fromLTRB(dx, dy, dx, 0);
|
||||
return .fromLTRB(offset.dx, offset.dy, offset.dx, 0);
|
||||
}
|
||||
|
||||
static Future<void> imageView({
|
||||
|
||||
@@ -649,10 +649,8 @@ abstract final class Pref {
|
||||
static double get defaultTextScale =>
|
||||
_setting.get(SettingBoxKey.defaultTextScale, defaultValue: 1.0);
|
||||
|
||||
static double uiScale = _setting.get(
|
||||
SettingBoxKey.uiScale,
|
||||
defaultValue: 1.0,
|
||||
);
|
||||
static double get uiScale =>
|
||||
_setting.get(SettingBoxKey.uiScale, defaultValue: 1.0);
|
||||
|
||||
static bool get dynamicsWaterfallFlow =>
|
||||
_setting.get(SettingBoxKey.dynamicsWaterfallFlow, defaultValue: true);
|
||||
|
||||
Reference in New Issue
Block a user