mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 07:15:19 +01:00
[GH-ISSUE #74] Support module-level options in custom modules' Widget #4261
Labels
No labels
A:Build
A:CI
A:Client
A:Config
A:Core
A:Documentation
A:Documentation
A:IPC
A:Testing
A:UX/UI
blocked
BREAKING CHANGE
duplicate
good first issue
GTK4
help wanted
invalid
M:Battery
M:Battery
M:Bindmode
M:Bluetooth
M:Brightness
M:Cairo
M:Clipboard
M:Clock
M:Clock
M:Custom
M:Focused
M:Keyboard
M:Launcher
M:Menu
M:Music
M:Music
M:Music
M:Network Manager
M:Notifications
M:SysInfo
M:Tray
M:Volume
M:Workspaces
partially resolved
P:Critical
P:High
P:Low
P:Medium
pull-request
T:Bug
T:Bug
T:Core Enhancement
T:Module Enhancement
T:New Module
T:Question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/ironbar#4261
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JustSimplyKyle on GitHub (Feb 11, 2023).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/74
Is your feature request related to a problem? Please describe.
Kinda? I want on_scroll_up and on_scroll_down in custom but that doesn't seem to work according to my testing
Describe the solution you'd like
Support for https://github.com/JakeStanger/ironbar/wiki/configuration-guide#32-module-level-options ! Should be quite simple I think.
Additional context
Why is it
on_clickinstead ofon_click_leftin custom, very confusing@JakeStanger commented on GitHub (Feb 11, 2023):
This would be good for consistency, happy to add this in.
Probably not - the two are independent systems that work differently, hence why they have a different set of options from each other currently. The ideal way to implement this would be to make them share the same options/responsible code but that will require some refactoring.
This got missed when I changed the module-level option's name for consistency. I'll get that fixed, thanks for spotting.
@JustSimplyKyle commented on GitHub (Apr 22, 2023):
Thanks! Although it seems like on_scroll_up and on_scroll_down in the slider widget doesn't work
@JakeStanger commented on GitHub (Apr 22, 2023):
For some reason the scale automatically binds to the scroll event, then does nothing with it, so the parent EventBox never receives the event.
I'm going to implement proper scrolling logic into the scale component, so it will just work to change the value on scroll without any config. There'll be a
stepconfig option to go with it to configure how much it steps by.@JakeStanger commented on GitHub (Apr 23, 2023):
This is what was resolved by #119, not #115 as it was linked.