-
Notifications
You must be signed in to change notification settings - Fork 83
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
PBL-21894 Add color support for window layout editor #222
base: master
Are you sure you want to change the base?
Conversation
I question your sense of colour. |
@@ -48,7 +48,8 @@ | |||
this._node.css({ | |||
'background-color': this._backgroundColour.getValue().css | |||
}); | |||
var invertIcons = (this._backgroundColour.getValue() != IB.ColourWhite); | |||
var mono_bg_colour = this._backgroundColour.getValue(IB.ColourModes.Monochrome); |
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.
Camel case in the UI editor.
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.
OK, I've changed it everywhere
This has merge conflicts. |
Conflicts fixed! |
@@ -0,0 +1,143 @@ | |||
'use strict'; |
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.
Move this inside the anonymous function (as the first statement).
The appearance of ActionBarLayer should be updated to match its 3.x appearance (a 30-pixel-wide bar down the side; you'll have to check icon positioning). |
Would you want to that to change depending on whether the user is working with 2.x or 3.x? |
Yes. |
Hmm, looking at it, it seems I never actually added anything to disable the colour features when making a 2.x project... |
OK, I've fixed the code issues, the ActionBarLayer display, and made the colour options SDK 3 only |
b6ee338
to
3c53206
Compare
I wonder if the various other globals you've added ( |
IB.Settings is a submodule like ResourceManager/etc. ColourEnabled I wasn't sure about, since it's effectively a constant for the lifetime of the page. |
|
Right, PBIs will work in the ActionBarLayer now, and I renamed ColourEnabled to colourEnabled. |
GColorClear: new IB.Colour('GColorClear', 'rgba(0, 0, 0, 0)', gettext('Transparent')) | ||
}; | ||
_.each(IB.FullColourDescriptionMap, function(colour) { | ||
var GColor = _.findWhere(colour.literals, {'id': 'define'}).value; |
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.
This should probably just be called gcolour
.
c31cfc4
to
c4b389f
Compare
c4b389f
to
d8b6553
Compare
Now it just needs a colour picker and aplite support.
d8b6553
to
7671639
Compare
This PR adds full support for colours to the Interface Builder, with fallbacks supported for B/W watches.