The "View Output" window always saved the raw output (JSON), even with a
.txt file name, and offered no format choice. The device information
window saved text into a .json file when the "Text Files" type was
selected, since the suggested file name has a .json extension.
- Add smartctl_output_export (applib): extracts the available formats
(JSON, and the text output embedded with --json=o) from smartctl output,
and decides the format and file extension from the selected file type or
the typed extension.
- Add a shared Save As dialog used by both windows, offering only the
available formats and confirming overwrites of extension-adjusted names.
- "View Output" window: add a JSON / Text selector, so the displayed (and
copyable) text can be switched; Save As suggests the displayed format.
Fixes#85
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The "Scanned on" format string lacked the %1 placeholder, so the scan
time was never shown in the main window icon tooltip for virtual drives.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Move the adaptive estimation into SelfTestEtaEstimator, which tracks
observed seconds per percent instead of per-change "segment" durations.
This fixes NVMe estimates (1% steps were counted as 10% segments, giving
~10x too short ETAs), and progress spanning several steps between two
polls (e.g. 80% -> 60%) being counted as a single segment.
- Reset the estimator state in start().
- Return unknown ETA when the test is not running.
- Add unit tests for the estimator (the existing tests did not cover it).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Start with "If" as suggested in the issue, state that the type by itself
does not indicate a problem, and restore the explanation of when an alarm
condition is reached.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Previously, once the Advanced tab was active, Ctrl+Tab only cycled its
sub-tabs, making it impossible to leave the Advanced tab using the keyboard.
Now the Advanced sub-tabs are stops in the same sequence as the main tabs.
Also ignore Ctrl+Alt+Tab and treat ISO_Left_Tab as backward navigation.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Treat scales below 100% as non-fractional, avoiding a division by zero
in the correction ratio and a bogus font size increase.
- Add app_get_fractional_scaling_part_percent() and use it in gsc_init.
- Move scaling tests to applib_tests and test the actual helper functions
instead of duplicated inline math; remove the gui_tests target.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GTK3 only supports integer scaling, so at e.g. 125% or 250% system scaling
the UI is rendered at 1x / 2x. Store the full system scale percentage and
scale the default (glade) window sizes by the remaining fractional ratio,
and increase the font size by the fractional amount.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Parsing of the smartctl output was broken here, tests would initiate but the GUI would report them as failing. Re-running the test would detect the in-progress SMART scan and function as expected on the second try. Fixed by modifying this regex on the stable smartmontools 7.5.
Some icon themes may return a lower-resolution icon than requested.
For example, under XQuartz on macOS, Gtk::IconTheme::load_icon()
returns a 16x16 drive-harddisk icon even when a 64x64 icon is
requested.
Because the theme lookup succeeds, the bundled higher-resolution
icons are never used, resulting in tiny drive icons in the main
window.
Fall back to the bundled icon when the theme-provided icon is
smaller than the requested size.
- Guard theme detection with Gtk::Main::level() check to avoid crashes in non-GUI executables
- Use narrow headers (gtkmm/settings.h, gtkmm/main.h) instead of umbrella gtkmm.h
- Return early from app_property_get_label_highlight_color() for WarningLevel::None
Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
- Type column now shows bold text only when BOTH conditions are met:
1. Attribute has actually failed (when_failed != None)
2. Attribute type is pre-failure
- This provides visual emphasis for genuine pre-failure warnings
- Normal pre-failure attributes (not failed) remain normal weight
Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
- Updated tooltip to clearly explain Type indicates alarm meaning
- Removed bold formatting for "pre-failure" to reduce visual alarm
- Changed text to emphasize Type is about alarm interpretation, not current status
Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>