-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hswidget/PaletteSelectWidget: refactor #312
base: master
Are you sure you want to change the base?
Conversation
c5c280d
to
a581bd1
Compare
please rebase off of upstream master |
…t with `X` button
@gravestench done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a bug, please fix.
Can not set palette for DC6 (your issue-299
branch):
Screen.Recording.2021-07-05.at.7.33.17.PM.mov
On master
, the feature is working as expected:
Screen.Recording.2021-07-05.at.7.35.00.PM.mov
okey, after a small linvestigation, I found that the bug is caused by build method improvement: if e.selectPalette {
// build palette select
}
dt1Viewer := dt1widget.Create(e.state, e.palette, e.textu
e.Layout(g.Layout{
dt1Viewer,
}) so building widget also happens if selectPalette is active |
I think that your proposed changes, which are related to selecting a palette, would be more coherent inside of this refactor. |
yeah, that's what I mean exactly, I'll work on it before this PR will be ready |
when palette was changed, the widget didn't detected it. now palette is saved in widgetState and widget detects if palette was changed.
for more details, see 342fb35
This PR contains a refactor of palette select (for dc6, dcc and d61 editors) related code.
CHANGELOG:
rgba
field from dc6 widget stateCreate
. I suppose, it'd be better to add a separated method for setting this argument.