Skip to content

Commit e6f4b58

Browse files
style: add spacing adjustments and remove redundant text in SettingsScreen and ProcessesScreen for improved readability
1 parent 00debc9 commit e6f4b58

3 files changed

Lines changed: 8 additions & 16 deletions

File tree

dashboard/lib/screens/logbook_screen.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,7 @@ class _TopProcessesPanel extends StatelessWidget {
901901
child: Column(
902902
crossAxisAlignment: CrossAxisAlignment.start,
903903
children: [
904+
const SizedBox(height: 8),
904905
Row(
905906
children: [
906907
Text(

dashboard/lib/screens/processes_screen.dart

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -127,16 +127,7 @@ class _ProcessesScreenState extends State<ProcessesScreen> {
127127
),
128128
),
129129
const SizedBox(height: 2),
130-
Text(
131-
'Grouped by app name. Entries disappear shortly after a PID '
132-
'stops appearing in the engine top list (ended or dropped out). '
133-
'Memory % is per instance.',
134-
style: TextStyle(
135-
color: AppTheme.textMutedFor(context),
136-
fontSize: 10,
137-
height: 1.2,
138-
),
139-
),
130+
const SizedBox.shrink(),
140131
],
141132
),
142133
),

dashboard/lib/screens/settings_screen.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
112112
const SizedBox(height: 8),
113113
Text(
114114
'When CPU, memory, or disk pressure stays at or above these '
115-
'levels for several samples, an alert fires (same signals as the dashboard).',
115+
'levels for several samples, an alert fires.',
116116
style: TextStyle(
117117
color: AppTheme.textMutedFor(context),
118118
fontSize: 12,
@@ -161,7 +161,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
161161
Text(
162162
'Separate from resource alerts above. This only changes when '
163163
'NORMAL / ELEVATED / HIGH / SEVERE is shown for baseline deviation '
164-
'(z-scores). Stricter = labels shift at lower scores.',
164+
'(z-scores).',
165165
style: TextStyle(
166166
color: AppTheme.textMutedFor(context),
167167
fontSize: 12,
@@ -224,7 +224,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
224224
'After an alert fires, the engine may end matching processes '
225225
'(graceful terminate) to reduce load. Choose names from what '
226226
'the engine currently sees, or add another name manually. '
227-
'Use only for apps you accept losing unsaved work.',
227+
'',
228228
style: TextStyle(
229229
color: AppTheme.textMutedFor(context),
230230
fontSize: 12,
@@ -279,9 +279,9 @@ class _SettingsScreenState extends State<SettingsScreen> {
279279
padding: const EdgeInsets.symmetric(horizontal: 16),
280280
child: Text(
281281
!engine.connected
282-
? 'Connect to the engine to load process names from this PC.'
282+
? 'Connect to the engine to load process names.'
283283
: pickNames.isEmpty
284-
? 'No processes yet — tap Refresh after the engine runs a few seconds.'
284+
? 'No processes yet.'
285285
: 'Checked names are allowed for safeguard termination.',
286286
style: TextStyle(
287287
color: AppTheme.textMutedFor(context),
@@ -444,7 +444,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
444444
style: TextStyle(color: AppTheme.textPrimaryFor(context)),
445445
),
446446
subtitle: Text(
447-
'Windows toast when the engine fires an alert',
447+
'Windows toast when an alert fires',
448448
style: TextStyle(
449449
color: AppTheme.textMutedFor(context),
450450
fontSize: 12,

0 commit comments

Comments
 (0)