Skip to content
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

Reworks dt1widget makeSubtileFlags to use dropdown menu #313

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

bbrucee
Copy link
Contributor

@bbrucee bbrucee commented Jun 8, 2021

Resolves issue #311

Follows style of dropdown used in the dc6 widget

@@ -579,13 +580,21 @@ func (p *widget) SetTileGroup(tileGroup int32) {
}

func (p *widget) makeSubtileFlags(state *widgetState, tile *d2dt1.Tile) giu.Layout {
sf := state.subtileFlag
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't need to do that, just use state.subtileFlag below

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True! I'll fix this. This means that the OnChange func can also be removed making the giu.Combo a single line

gucio321
gucio321 previously approved these changes Jun 9, 2021
@gravestench gravestench linked an issue Jul 4, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DT1 widget: subtitle type scrollbar should be a drop-down
4 participants