mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2026-02-20 07:05:07 +01:00
new & opt.: server page font size
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user