Commit Graph
261 Commits
Author SHA1 Message Date
Alexander ShaduriandClaude Opus 5.5 971aa8d1bf Self-test ETA: Estimate from observed progress speed per percent
- 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>
2026-10-15 23:05:58 +02:00
Alexander Shaduri 55931f2a88 Merge remote-tracking branch 'origin/main' into copilot/fix-test-completion-eta-message
# Conflicts:
#	src/applib/tests/CMakeLists.txt
2026-10-15 23:04:14 +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 c673bd95bb Add unit tests for SelfTest adaptive ETA algorithm
Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ashaduri/gsmartcontrol/sessions/8b4b77f5-beb6-4c32-bf49-93d641714685
2026-03-22 17:04:36 +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 e4c9afeed0 Update src/applib/warning_colors.h
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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 c322e96741 Revert to umbrella gtkmm.h include per maintainer request
Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
2026-03-08 18:52:27 +01:00
anthropic-code-agent[bot]andashaduri a6e2dd0cc6 Add GTK init guard and optimize theme detection
- 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>
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
Alexander ShaduriandCopilot 68032c4f3c Update src/applib/warning_colors.h
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-07 17:39:35 +01:00
copilot-swe-agent[bot]andashaduri b1ccfd43e0 Fix narrowing conversion: use int instead of int8_t for remaining_segments
Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
2026-03-07 15:26:53 +00:00
copilot-swe-agent[bot]andashaduri dd0b9fe8ea Move gran to fallback path and fix adaptive ETA for NVMe drives
Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
2026-03-07 15:21:48 +00: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 258d06b755 Revert to umbrella gtkmm.h include per maintainer request
Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
2026-03-06 19:08:06 +00:00
anthropic-code-agent[bot]andashaduri d88090d6b6 Skip first segment in adaptive ETA to avoid skew from instant/partial progress
Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
2026-03-06 14:54:17 +00:00
anthropic-code-agent[bot]andashaduri 1c99ff8350 Implement adaptive ETA calculation based on observed segment durations
Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
2026-03-06 14:43:41 +00:00
anthropic-code-agent[bot]andashaduri 525fcfe3af Add GTK init guard and optimize theme detection
- 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>
2026-03-06 14:36:54 +00:00
copilot-swe-agent[bot]andashaduri 2ef695f8fb Fix misleading ETA: 0 sec during self-test when drive estimate is exceeded
Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
2026-03-04 22:05:23 +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 5343ba9dae Cleanups 2026-03-04 22:48:21 +01:00
Alexander Shaduri dadfd60ed3 Fix gcc shadow warning. 2025-11-25 19:29:46 +01:00
copilot-swe-agent[bot] 6c8fea7309 Add new natural sort order tests. 2025-11-25 19:29:28 +01:00
copilot-swe-agent[bot]andashaduri 54425a306a Implement natural sort order for drive names
Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com>
2025-11-25 12:59:41 +01: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 a5fddf1bb2 Use {fmt} instead of <format> to support older compilers. 2025-02-07 11:44:50 +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 a254c17fcb Updated wikipedia links. 2024-12-10 18:26:40 +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 840398c073 Fix potential crash in attribute description database. 2024-11-19 12:58: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 7ac61f1cac Fix crash on startup in Windows. 2024-11-06 12:37:48 +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