Commit Graph
59 Commits
Author SHA1 Message Date
Alexander ShaduriandClaude Opus 5.5 d6b109dc65 Allow saving smartctl output as text from all Save As dialogs
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>
2026-10-15 23:22:50 +02:00
Alexander Shaduri fed68f60e9 Merge pull request #127 from ashaduri/claude/fix-scanned-on-tooltip
Fix scan time missing from virtual drive tooltip
2026-10-15 23:14:13 +02:00
Alexander Shaduri 90e38fa7cb Merge pull request #117 from ashaduri/claude/fix-model-family-display-issue
Fix HTML entity encoding in main window labels
2026-10-15 23:13:33 +02:00
Alexander Shaduri 28e385a039 Merge pull request #110 from ashaduri/claude/update-type-attribute-explanation
Clarify the Type attribute explanation
2026-10-15 23:10:59 +02:00
Alexander Shaduri dae6f79ad6 Merge pull request #107 from ashaduri/claude/add-ctrl-tab-for-tabs
Switch device information tabs with Ctrl+Tab
2026-10-15 23:09:30 +02:00
Alexander ShaduriandClaude Opus 5.5 7d9bcae73c Fix scan time missing from virtual drive tooltip
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>
2026-10-15 23:08:42 +02:00
Alexander ShaduriandClaude Opus 5.5 c63983ba05 Type tooltip: Clarify that the type alone is not a warning
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>
2026-10-15 23:03:09 +02:00
Alexander ShaduriandClaude Opus 5.5 f48dae74cd Ctrl+Tab: Include Advanced sub-tabs in the main tab cycle
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>
2026-10-15 23:01:34 +02:00
Alexander ShaduriandClaude Opus 5.5 08d200af94 Scaling: Fix sub-100% scale handling, test real helpers
- 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>
2026-10-15 22:43:13 +02:00
Alexander ShaduriandClaude Opus 5.5 cb5b1284be Adjust default window sizes for fractional scaling on Windows
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>
2026-10-15 22:43:13 +02:00
OldMan2525 fa31a696a7 Use bundled icons when theme icons are too small
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.
2026-07-07 02:13:11 -07:00
anthropic-code-agent[bot]andashaduri d768d8b690 Fix HTML entity encoding in main window labels
- Fix model family label to use set_markup() instead of set_text()
- Fix family label tooltip to use markup mode
- Fix name label tooltip to use markup mode
- All labels now properly render HTML entities like quotes

Agent-Logs-Url: https://github.com/ashaduri/gsmartcontrol/sessions/d14daedd-b7c3-45ae-adf0-b9de6c8ea901

Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
2026-04-04 15:33:54 +00:00
anthropic-code-agent[bot]andashaduri 37090a8556 Fix Type tooltip and FailTime condition per PR feedback
Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ashaduri/gsmartcontrol/sessions/b9ea2530-2c7d-4061-accb-eb7d7bb1dc16
2026-03-22 17:09:02 +00:00
Alexander Shaduri 57a16f6971 Fix compilation. 2026-03-08 19:08:51 +01:00
Alexander Shaduri a7f0cb78cd Merge remote-tracking branch 'origin/claude/fix-red-text-legibility' into claude/fix-red-text-legibility
# Conflicts:
#	src/applib/warning_colors.h
#	src/gui/gsc_info_window.cpp
2026-03-08 19:04:00 +01:00
Alexander Shaduri 3642afc46f Use readable text highlight colors in dark mode. 2026-03-08 18:52:27 +01:00
Alexander ShaduriandCopilot 06a0a75349 Update src/gui/gsc_info_window.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-08 18:52:27 +01:00
anthropic-code-agent[bot]andashaduri 6de9bb897d Implement theme-aware red text colors for dark theme legibility
Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
2026-03-08 18:52:27 +01:00
Claude 083936e99b Add Windows dark mode detection and automatic GTK theme switching (#111) 2026-03-08 18:31:58 +01:00
anthropic-code-agent[bot]andashaduri b7cfa45cac Fix Advanced tab detection: only cycle sub-tabs when Advanced is active
Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
2026-03-07 16:47:13 +00:00
anthropic-code-agent[bot]andashaduri 980d0f143c Fix build issues: clean up corrupted function and properly structure code
Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
2026-03-07 15:41:03 +00:00
Alexander ShaduriandCopilot dcce1f1250 Update src/gui/gsc_info_window.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-07 16:18:50 +01:00
Alexander ShaduriandCopilot b167098a6d Update src/gui/gsc_info_window.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-07 16:18:36 +01:00
Alexander ShaduriandCopilot 3373750d2c Update src/gui/gsc_info_window.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-07 16:18:01 +01:00
Alexander ShaduriandCopilot 7e626460c0 Update src/gui/gsc_info_window.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-07 16:15:24 +01:00
anthropic-code-agent[bot]andashaduri 99d358396b Make Type bold only on pre-failure attribute failure
- 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>
2026-03-06 19:02:55 +00:00
anthropic-code-agent[bot]andashaduri d1d64693db Clarify Type attribute explanation and remove bold formatting
- 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>
2026-03-06 14:52:28 +00:00
anthropic-code-agent[bot]andashaduri 9427d829a3 Support Ctrl+Tab navigation for Advanced tab sub-tabs
Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
2026-03-06 14:44:39 +00:00
anthropic-code-agent[bot]andashaduri 6ce03db09f Add Ctrl+Tab keyboard navigation for device information tabs
Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
2026-03-04 21:58:07 +00:00
anthropic-code-agent[bot]andashaduri f692e2879c Implement theme-aware red text colors for dark theme legibility
Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
2026-03-04 21:56:40 +00:00
Alexander Shaduri 44948de7d0 Fixed typos and updated visible copyright years. 2025-06-11 09:43:36 +02:00
Alexander Shaduri 6630116ba1 Properly implemented persistence of manually added devices (#87). Added --forget-devices option to clear the list if any of the devices causes trouble. 2025-04-28 18:51:42 +04:00
Alexander Shaduri 1f7c2b6a92 Manually added devices can be persistent now. 2025-04-28 11:19:44 +00:00
Alexander Shaduri e35c301605 Update gsc_info_window.cpp
Looking at the smartmontools code, it should be 65535 I believe.
2025-04-17 11:31:13 +04:00
checktext00 7af8dba9f3 update 36535 to 65536 hours 2025-04-16 11:58:09 +00:00
Alexander Shaduri d7032eb351 Allow smartctl < 7.3 again, falling back to Text parser; this configuration is for compatibility only and not fully supported. 2025-02-24 13:52:04 +04:00
Alexander Shaduri 589c280bdc Support saving smartctl output to text (using old text format) instead of json (#76). 2025-02-15 13:22:47 +04:00
Alexander Shaduri 9f85d09736 Support standard (non-extended) self-test log in JSON ATA parser (#79). 2025-02-14 13:48:30 +04:00
Alexander Shaduri d45e5360cc Temperature: Fixed reporting unreasonably large values when raw value encodes min/max values as well (#78); support protocol-independent temperature reporting in JSON. 2025-02-14 13:28:43 +04:00
Alexander Shaduri 515bf11c3d Added self-test "lifetime hours" wrapping behavior to the column header tooltip. 2024-12-26 13:07:24 +04:00
Alexander Shaduri a57e543701 Windows: Avoid using non-integer font sizes. 2024-12-06 12:33:50 +04:00
Alexander Shaduri 8c96c02468 Add a note about DPI awareness limitations. 2024-11-26 13:43:45 +04:00
Alexander Shaduri 93384e4c37 Fix compiler warning. 2024-11-19 12:39:01 +04:00
Alexander Shaduri 566b11026e Fix "Show SMART capable only" checkbox not having effect. 2024-11-07 14:48:18 +04:00
Alexander Shaduri 066eaec993 Windows: Use Adwaita theme by default, win32 theme has too many problems (with Classic theme and with fractional dpi scaling). 2024-11-06 14:11:08 +04:00
Alexander Shaduri 746ebf9b02 Windows: Re-enable dpi awareness and scale up the font in case of fractional scaling. 2024-11-06 13:57:59 +04:00
Alexander Shaduri 99bf00d27c Fixed running "Update smartctl database" on Windows; use argv on all platforms so it is more secure. 2024-11-05 14:53:19 +04:00
Alexander Shaduri 7fd43bba2c Info window: Don't use Gtk::Stock for icons. 2024-11-05 14:15:19 +04:00
Alexander Shaduri b785a4fbec Replace bundled icons with the ones from Oxygen project; bundle removable drive icon; update copyrights accordingly. 2024-11-05 14:00:33 +04:00
Alexander Shaduri 3aa5ddfc32 Test results are presented in a more obvious manner now. 2024-11-04 20:38:47 +04:00