Commit Graph

562 Commits

Author SHA1 Message Date
Adam Honse
c0826fbe83 Settings Rework
* Add JSON string configuration field to RGBController to store device-specific configurations
    * This JSON string holds both configuration and schema
    * Add settings schema tracking to SettingsManager
    * Implement dynamic settings widget that generates a settings UI based on a JSON schema
    * Implement SettingsManager callback for notifying of settings changes and settings schema updates
    * Always enable Entire Device zone option and use it to enable Edit Device
    * Rename SaveSizes to SaveConfiguration in ProfileManager and Sizes.json to Configuration.json
    * Add zone flag for indicating that a zone's geometry may change, informing profile manager to ignore this check
    * Remove Theme setting and Theme Manager, as this didn't work on most setups anyways and Qt6 has proper Windows dark theming
2026-05-04 22:50:47 -05:00
Dmitry Kychanov
128dd8ef94 Fix losing software info upon changing language [next] 2026-04-24 11:36:41 -05:00
Dmitry Kychanov
402adaf7b0 Fix device tabs not applying compact mode when hotplugging 2026-04-24 11:36:41 -05:00
Adam Honse
e27ba21d80 Clean up zone initialization dialog 2026-04-24 11:36:41 -05:00
Adam Honse
f49d6c42b1 Implement segment groups in zone editor 2026-04-24 11:36:41 -05:00
Adam Honse
51788536c1 Rework server initialization
* Only create server instance if server is actually needed
    * Pass initial server host and port through ResourceManager
    * Allow setting default server host and port in Server settings
2026-04-24 11:36:41 -05:00
Adam Honse
9e09832ded Organize OpenRGBSettingsPage with Group Boxes 2026-04-24 11:36:41 -05:00
Kasslim
fee84d74a5 Correct spelling Busses -> Buses
Commits merged by Adam Honse <calcprogrammer1@gmail.com>
2026-04-24 11:36:41 -05:00
Adam Honse
9d7b590965 Only update device view when RGBController::UpdateLEDs signal is sent to OpenRGBDevicePage, fix device view not refreshing if multiple LEDs are selected 2026-04-24 11:36:41 -05:00
Adam Honse
2613bd50a5 Don't emit selection update on mouse click event to avoid sending unnecessary events, also only send one type of event per mouse release event. Fix LED box not being updated 2026-04-24 11:36:41 -05:00
Adam Honse
92e851d596 DeviceView code cleanup, formatting, commenting 2026-04-24 11:36:41 -05:00
Adam Honse
a904754f2a Fix selecting LEDs in device view 2026-04-24 11:36:41 -05:00
Adam Honse
a1729222bc TabLabel sets its own tooltip so all tabs have a tooltip rather than just devices 2026-04-24 11:36:41 -05:00
Adam Honse
8becefdd3b Resize tabs when width is small 2026-04-24 11:36:41 -05:00
Adam Honse
4bfe5e733b Rework adding segments with ConfigureZone 2026-04-24 11:36:41 -05:00
Adam Honse
70ece92ff7 Zone and Segment type updates
* Add zone flags to indicate if fields are manually configurable and if they have been manually configured
  * Add flags field to segment type
  * Add segment flags for group start and group member
  * Add color mode support flags to zone (RGB, RBG, GRB, GBR, BRG, BGR)
  * Add color mode enum to zone
  * Update zone and segment description functions to support new fields
  * Rename the effects-only configurable size flag
  * Remove zone type and matrix map configuration from E1.31 manual configuration, use zone editor instead
  * Rework DeviceResizeZone to DeviceConfigureZone
  * Rework most ARGB controllers to allow zone customizations
  * Rework DRGBController to define devices in DRGBDevices list (similar to RazerDevices)
  * Rework NollieController to define devices in NollieDevices list (similar to RazerDevices)
2026-04-24 11:36:41 -05:00
Adam Honse
2b1b4cff9b Add matrix map automatic generation to matrix map editor 2026-04-24 11:36:41 -05:00
Adam Honse
2995016231 RGBController API changes and segment configuration updates
* Make the Get/Set RGBControler descriptor functions static
  * Add functions for getting the matrix_map_type for zone and segment matrix maps
  * Rename zone resize dialog to zone editor dialog
  * Add additional segment types
  * Add option to import segments configuration from JSON file in zone editor dialog
  * Update device view to be able to display matrix segment types
  * Add matrix map editor dialog for creating/editing segment matrix maps
  * Add option to export segments configuration to JSON file in zone editor dialog
2026-04-24 11:36:41 -05:00
Adam Honse
699ab35df3 Profile editor dialog 2026-04-24 11:36:41 -05:00
Adam Honse
d0fdb1dfb3 [next] Active profile tracking 2026-04-24 11:36:40 -05:00
Adam Honse
c3b4bb378d Add optional HID device hotplug support (requires https://gitlab.com/OpenRGBDevelopers/hidapi-hotplug) 2026-04-24 11:36:23 -05:00
Adam Honse
6611cfe1fc Rework list handling in ResourceManager by having NetworkClient own its own list rather than sharing ResourceManager's list 2026-04-24 11:32:03 -05:00
Adam Honse
88a5db5a8b Split out detection system from ResourceManager into DetectionManager
* Split detection system out into its own class, DetectionManager
    * Clean up ResourceManger's many callbacks into just two, one for detection and one general purpose
2026-04-24 11:32:03 -05:00
Adam Honse
2b19fd8131 SDK Version 6 Updates
* SDK Protocol
    * Server sends its name to client
    * ProfileManager
      * Rename existing profile commands
      * Add Upload Profile, Download Profile, and Get Active Profile commands
    * SettingsManager
      * Add Get, Set, and Save Settings commands
    * Add zone::active_mode, zone::mode fields for zone-specific modes
    * Add NET_PACKET_ID_RGBCONTROLLER_UPDATEZONEMODE packet for updating zone modes
    * Add segment::matrix_map to segment packet
    * Add NET_PACKET_ID_RGBCONTROLLER_SIGNALUPDATE packet for passing SignalUpdate signal from server to clients
  * NetworkServer
    * Formatting cleanup
    * Use per-controller threads for handling NetworkServer controller-specific packets to avoid delays from controller mutexes
  * NetworkClient
    * Formatting cleanup
  * RGBController
    * Clean up and modularize descriptor functions
2026-04-24 11:32:03 -05:00
Adam Honse
44795190ca Rework Profiles to use JSON format
* Update OpenRGB Plugin Interface to include functions for loading/saving profile JSON data into OpenRGB profiles
    * Update ProfileManager to handle auto-load profiles (Exit, Open, Resume, Suspend) and move their settings to ProfileManager section
    * Update ProfileManager to store profiles in "profiles" folder in .json format
    * Update ProfileManager to store size profile in sizes.json
    * Update ProfileManager to perform device UpdateMode/UpdateColors when loading profile
    * Code cleanup of ProfileManager and profile-related code
2026-04-24 11:32:02 -05:00
Adam Honse
df9a08a367 RGBController API Overhaul
* Reorganize and clean up RGBController API functions
    * Add functions to get protected RGBController member values
    * Make NetworkClient, ProfileManager, and ResourceManager friend classes so they can access protected members
    * Protected previously-public RGBController members
        * Information strings (name, vendor, description, version, serial location)
        * Device type
        * Active mode
        * Flags
        * LEDs vector
        * LED alternate names vector
        * Modes vector
        * Colors vector
        * Zones vector
    * Add CONTROLLER_FLAG_HIDDEN to allow plugins to hide controllers from control GUI
    * Add update reason codes to RGBController update callback and signal updates on more RGBController events
    * Add loop zone types and segmented zone type
    * Add matrix map field to segments
    * Rework matrix_map_type from using pointers to vector to prevent memory leaks
    * Rework KeyboardLayoutManager to return new matrix_map_type
    * Add access mutex to RGBController API
    * Add per-zone modes ot RGBController API
    * Add JSON description functions to RGBController API
2026-04-24 11:32:02 -05:00
Adam Honse
cb10fa00e4 Move plugin SDK integration from callback into plugin API and PluginManager 2026-04-24 11:32:02 -05:00
acehighdan
e8f345ff77 Sync autostart system configuration with OpenRGB settings on startup
If the autostart system configuration is deleted (e.g. by a reinstall or
package manager) but the JSON config still has enabled=true, OpenRGB
would silently fail to start at login. Fix by calling ConfigureAutoStart()
in the settings page constructor so the system configuration is always
reconciled with the stored JSON state every time OpenRGB starts.

Commit amended to make wording more generic by Adam Honse <calcprogrammer1@gmail.com>
2026-04-20 23:32:49 -05:00
Dmitry Kychanov
aff0610df9 Fix default language load on start 2026-04-20 23:32:49 -05:00
Dmitry Kychanov
0ec4aaa629 Fix losing software info upon changing language 2026-04-20 23:32:49 -05:00
Adam Honse
d79a400c8c Fix corrupted text in TabLabels when translation occurs after the constructor 2026-04-20 23:32:31 -05:00
Adam Honse
388557e5f9 Ensure device view is initialized if there are no LEDs to avoid accessing out of bounds 2026-04-20 23:32:17 -05:00
Adam Honse
056b383536 Add SMBus Sleep Mode settings page 2026-04-15 00:29:54 -05:00
Arthur de Groot
cc06c62164 Rename Setting RunZoneChecks -> run_zone_checks 2026-02-05 17:20:14 -06:00
Adam Honse
f2d1188fdd Fix swatches not resizing properly when maximized 2026-01-28 18:35:22 -06:00
Adam Honse
02e0504227 Fix controls on OpenRGBClientInfoPage list not working on Qt6 2026-01-11 00:37:43 -06:00
Serhat Öktem
69ccd56fef Turkish language file 2026-01-09 23:53:34 -06:00
Adam Honse
b3c5a65884 Reduce duplicate code in zone selection handling in OpenRGBDevicePage 2025-12-15 18:16:19 -06:00
Adam Honse
bd6b358e0d Fix some issues with detector settings page 2025-12-08 15:33:17 -06:00
Adam Honse
6da0dbf511 Add configuration for detector settings (HID safe mode and detection delay) to settings page 2025-12-08 01:00:09 -06:00
Adam Honse
74922bdf60 Add 1.0rc1 and 1.0rc2 to metainfo releases 2025-12-06 18:26:20 -06:00
Adam Honse
696008b48f Add manual device configuration for QMK VialRGB protocol 2025-11-26 12:49:25 -06:00
Adam Honse
e657f5c8d4 Make segment type configurable 2025-11-22 12:55:27 -06:00
Adam Honse
a6b890a48d Use ResourceManager::RescanDevices() to initiate a rescan in places where ResourceManager::DetectDevices() was still being used 2025-11-14 20:31:10 -06:00
Adam Honse
269e7c6115 Add tmpfiles for initializing /etc/openrgb for systemd service 2025-11-10 01:01:39 -06:00
Adam Honse
b22438d345 Use /etc/openrgb as config path for systemd service 2025-11-10 00:05:13 -06:00
Andre Toerien
b58b3c0402 Install systemd service under PREFIX 2025-10-15 07:53:15 -05:00
Adam Honse
c71cc4f18a Change SPDX license identifier from GPL 2.0 only to GPL 2.0 or later, as the original LICENSE file includes an or later clause at the end so the file headers were incorrect 2025-09-28 00:47:08 -05:00
Adam Honse
b349c3ff2c Update PawnIO SMBus driver to use standardized API between all drivers, add NCT6793 driver, and remove WinRing0 SMBus drivers 2025-09-14 14:31:13 -05:00
Adam Honse
30f9b84d5f Use GetName instead of directly accessing the RGBController::name member outside of Controllers 2025-08-01 11:32:55 -05:00