new & opt.: server page font size

This commit is contained in:
lollipopkit
2023-12-19 14:27:59 +08:00
parent 0d1a720f03
commit 2b1b6c7afb
19 changed files with 274 additions and 149 deletions

View File

@@ -129,7 +129,7 @@ Future<ServerStatus> _getLinuxStatus(ServerStatusUpdateReq req) async {
try {
final battery = StatusCmdType.battery.find(segments);
if (battery.isNotEmpty && !battery.contains('No such')) {
if (battery.isNotEmpty && !battery.contains('/sys/class/power_supply')) {
req.ss.more[StatusCmdType.battery] = battery;
}
} catch (e, s) {

View File

@@ -10,6 +10,12 @@ abstract final class UIs {
fontWeight: FontWeight.w500,
);
static const textSize11Grey = TextStyle(color: Colors.grey, fontSize: 11);
static const text12 = TextStyle(fontSize: 12);
static const text12Bold = TextStyle(
fontSize: 12,
fontWeight: FontWeight.bold,
);
static const text12Grey = TextStyle(color: Colors.grey, fontSize: 12);
static const textSize13 = TextStyle(fontSize: 13);
static const textSize13Bold = TextStyle(
fontSize: 13,

View File

@@ -32,13 +32,6 @@ class SettingStore extends PersistentStore {
true,
);
/// Bigger for bigger font size
/// 1.0 means 100%
/// Warning: This may cause some UI issues
late final textFactor = property(
'textFactor',
1.0,
);
/// Lanch page idx
late final launchPage = property(
@@ -64,6 +57,14 @@ class SettingStore extends PersistentStore {
// ------END------
/// Bigger for bigger font size
/// 1.0 means 100%
/// Warning: This may cause some UI issues
late final textFactor = property(
'textFactor',
1.0,
);
late final primaryColor = property(
'primaryColor',
4287106639,