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>
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>
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.
- 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>