Skip to content

Separate Label and RawLabel#1252

Merged
cmyr merged 1 commit intomasterfrom
raw-label
Sep 25, 2020
Merged

Separate Label and RawLabel#1252
cmyr merged 1 commit intomasterfrom
raw-label

Conversation

@cmyr
Copy link
Member

@cmyr cmyr commented Sep 23, 2020

(based off of #1245)

This makes label work more like other widgets; the RawLabel
widget is a thing that has a text data type (currently ArcStr)
and displays this text.

The existing Label widget is rewritten as a wrapper around
RawLabel; it is basically a sort of specialized, env-aware
LensWrap.

@cmyr cmyr force-pushed the arcstr-in-labeltext branch from e101e2b to 5291c12 Compare September 23, 2020 20:54
@cmyr cmyr force-pushed the arcstr-in-labeltext branch from 5291c12 to b6e7216 Compare September 24, 2020 20:31
@cmyr cmyr force-pushed the arcstr-in-labeltext branch from b6e7216 to 067323c Compare September 25, 2020 13:26
Base automatically changed from arcstr-in-labeltext to master September 25, 2020 14:02
This makes label work more like other widgets; the RawLabel
widget is a thing that has a text data type (currently ArcStr)
and displays this text.

The existing Label widget is rewritten as a wrapper around
RawLabel; it is basically a sort of specialized, env-aware
LensWrap.
Copy link
Collaborator

@luleyleo luleyleo left a comment

Choose a reason for hiding this comment

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

It's a bit annoying that we have to duplicate the builder methods, but I suppose there is now good way around it.

@luleyleo luleyleo added the S-ready PR is ready to merge label Sep 25, 2020
@cmyr cmyr merged commit 199be57 into master Sep 25, 2020
@cmyr cmyr deleted the raw-label branch September 25, 2020 19:13
cmyr added a commit that referenced this pull request Sep 27, 2020
We were failing to set the text in the update case; this
was a consequence of #1252
cmyr added a commit that referenced this pull request Sep 27, 2020
We were failing to set the text in the update case; this
was a consequence of #1252
cmyr added a commit that referenced this pull request Sep 27, 2020
This was removed as part of #1252, but I actually use it
in runebender so would prefer to keep it around for the
time being.
cmyr added a commit that referenced this pull request Sep 27, 2020
We were failing to set the text in the update case; this
was a consequence of #1252
cmyr added a commit that referenced this pull request Sep 27, 2020
This was removed as part of #1252, but I actually use it
in runebender so would prefer to keep it around for the
time being.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-ready PR is ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants