Commit Graph

79 Commits

Author SHA1 Message Date
Lemmy b8de6b1599 custom-button: using a proper singleton for the CustomButtonIPCService instead of and object registered in Qt.application. The singleton directly check the settings for IPC calls definition instead of the Bar widgets, this allow us to unload the bar widgets when the bar is hidden while keeping IPC call functional. 2026-02-11 15:22:05 -05:00
Lysec 82e0dfca11 SessionMenu: adjust keybind detection & layout 2026-02-06 13:19:22 +01:00
loner 5b6e361f00 feat(cc): add icon color field parsing to JSON
Parse icon color with priority: dynamic > static > default
2026-02-06 15:08:59 +08:00
Lysec 3e876e88bb Hooks/CustomButton: switch back to sh -lc 2026-02-03 20:02:28 +01:00
Lysec 8aa32c7a6d Switch sh -lc to sh -c in the whole codebase 2026-02-03 19:55:08 +01:00
Lemmy 795b77b8cd custom-button: make it compatible with bar's hot corners by renaming onClicked to clicked 2026-01-27 21:27:31 -05:00
Lemmy ff8790221a settings: added helpers function to open settings and focus a subtab 2026-01-27 17:09:13 -05:00
Lemmy 6410836ec6 custom-button: open widget settings if no left click actions 2026-01-27 16:57:59 -05:00
Lemmy 4467aa95d7 bar: improve widget settings refresh for overriden bar per monitor. also fix workspace widget not showing app icons on overriden monitor 2026-01-26 11:29:37 -05:00
Lemmy 180e0155ac settings-bar-monitors: proper loading and saving settings of widgets per bar. 2026-01-23 16:36:17 -05:00
Lemmy b340529b10 Bar: custom setup per screen (position, density, widgets) 2026-01-18 20:12:46 -05:00
Lemmy ae741df961 autofmt 2026-01-13 20:33:56 -05:00
loner db0a2ccb7f feat: Implement automatic IPC registration for CustomButton widgets
- Add automatic registration/unregistration of CustomButton instances to
CustomButtonIPCService
- Enable CustomButton widgets to register themselves with unique
identifiers
- Support external control via IPC commands using 'qs -c noctalia-loner
ipc call cb <action> "[identifier]"' format

Supported actions: left, right, middle, up (separate wheel mode), down
(separate wheel mode),wheel (unified wheel mode), refresh (textCommand)
2026-01-14 07:13:30 +08:00
Lemmy 5251a22d20 Bash vs sh: phase 1 - uniformization to sh. Always use sh, use "-lc" for all user defined commands 2026-01-09 15:01:17 -05:00
Lemmy 3bc9a625b8 Colors: removed Colors.transparent / black and white in favor of their direct shorthands 2026-01-04 13:54:51 -05:00
loner 959cdba70d feat: Add color selection dropdown to CustomButton widget settings 2026-01-03 09:17:28 +08:00
Lemmy 9b92d6752b Bar: better font sizing + workspace fix 2026-01-02 10:39:05 -05:00
ItsLemmy 6e0fe5ec49 SettingsPanel: simplified code flow and fixed potential opening on wrong tab 2025-12-15 00:07:07 -05:00
ItsLemmy 764299e4e7 Settings: added option to open settings in a separate (tiled) window + Fixed migrations/upgrades by parsing the rawJson 2025-12-11 21:03:43 -05:00
ItsLemmy e797a45838 Settings: transitionning gradient on scrollviews 2025-12-06 10:11:27 -05:00
loner 432936f58f feat: add showIcon and hideMode options for CustomButton 2025-12-06 11:42:59 +08:00
ItsLemmy a884f012d8 i18n + autoformat 2025-11-21 13:18:02 -05:00
loner e8a27acb63 fix: Left click behavior should only depend on left click settings 2025-11-21 11:06:51 +08:00
loner 694fefeebd feat: Custom buttons now support wheel actions 2025-11-21 10:58:15 +08:00
loner 516fc47b68 feat: Replace hideTextInVerticalBar with maxTextLength object
- Replace boolean hideTextInVerticalBar with maxTextLength object that has
  separate horizontal and vertical properties for more flexible text length control
- Add NSpinBox controls in settings UI to configure both horizontal and
  vertical max text length independently
- Update CustomButton widget to use new maxTextLength structure and
  implement text scrolling based on direction-specific limits
- Set default values to 10 for both horizontal and vertical (was 20/0)
- Update translations and widget registry metadata accordingly
- When vertical maxTextLength is 0, text is completely hidden (preserving
  original hideTextInVerticalBar: true behavior)

This allows users to set different text length limits for horizontal and
vertical bar orientations, providing more granular control over text display.
2025-11-21 09:07:30 +08:00
loner e549cfcb78 feat: Use maxTextLength to Limit Custom Button Text Length 2025-11-21 08:31:15 +08:00
loner ec92295a98 Enhance custom tooltip parsing 2025-11-21 08:30:46 +08:00
ItsLemmy 8242b0d97d Fix a bunch of hardcoded borders + autofmt 2025-11-18 19:17:25 -05:00
Lemmy af4ec4c694 Merge pull request #794 from lonerOrz/feat/custombutton
feat: Tooltip supports rich text parsing
2025-11-18 18:49:52 -05:00
loner 1a4f151bbc Enhanced rich text parsing for specific plain text content 2025-11-19 05:11:27 +08:00
ItsLemmy f1d714ad9a Cleanup: replaced a bunch of Screen by their proper "screen" 2025-11-17 14:53:47 -05:00
ItsLemmy 3ff5b7639f Switched to qmlformat. 2025-11-16 17:07:03 -05:00
kurrycat 7be6ea57a5 don't open settings when clicking on empty command custom button with update-text enabled 2025-11-12 16:51:37 +01:00
kurrycat b717baf4ba allow update-text toggle without command + disable update-text toggle in
text stream mode
2025-11-12 00:16:35 +01:00
kurrycat fb126cc86c add option to refresh CustomButton text on click 2025-11-11 23:57:40 +01:00
loner 54dad12a70 feat(bar): Add conditional text rotation for BarPillVertical 2025-11-10 18:39:53 +08:00
loner b37f4d4268 feat: Add dynamic tooltip parsing to CustomButton 2025-11-10 18:39:53 +08:00
loner 2f853e3eca feat(bar): Add option to hide CustomButton text in vertical bar 2025-11-10 18:39:53 +08:00
ItsLemmy 355271768c Services in subfolder + cleanup/fixes 2025-11-08 16:38:43 -05:00
ItsLemmy e29c6ee1a6 Refactor: Panels and Bar background are now drawn separately with Shapes. 2025-11-06 10:41:48 -05:00
ItsLemmy 101b27fcc7 New windowing system
Large commit that totally refactor of the way we handle the bar and
panels.

Testing should focus on Panels, Bar, Keyboard Focus, IPC calls.

Changes brief:
- One NFullScreenWindow per screen which handle it's bar and dedicated
panels.
- Added shadows
- Reintroduced dimming
- New panels animations
- Proper Z ordering
- Panels on overlay laywer is not reimplemented, if we do it then the
bar will be on the Overlay too
- Panel dragging was not reimplemented, to be discussed before
reimplementing
- Still a WIP, need to work more on shadows and polishing + debugging.
2025-11-03 00:53:02 -05:00
Ly-sec d443d7dba3 ColorSchemeTab: set walker theme to noctalia on template activation 2025-10-29 16:25:03 +01:00
loner 07a8f8c280 feat(custom-button): Add JSON parsing support 2025-10-29 20:28:59 +08:00
lysec c9d3aedf39 Tray, ActiveWindow: better dark mode colorization 2025-10-24 13:32:52 +02:00
loner 1d5eb91803 feat: Revert regex interpretation to require // delimiters and update en.json placeholder 2025-10-23 00:42:50 +08:00
loner 272bb50770 feat: Implement automatic regex interpretation for custom button collapse condition 2025-10-23 00:35:37 +08:00
loner beefae7350 feat: Add custom button collapse condition 2025-10-23 00:01:31 +08:00
shouya be078e04bd fix text not showing on custom button 2025-10-23 00:18:14 +09:00
ItsLemmy 3eef346319 CustomButton stream: i18n + autofmt 2025-10-22 10:18:28 -04:00
Lemmy 4da0b353dc Merge pull request #533 from shouya/main
Add support for streaming command outputs in CustomButton
2025-10-22 10:16:55 -04:00