[Interest] qt.labs.controls and colors

ekke ekke at ekkes-corner.org
Tue Feb 16 22:28:04 CET 2016


just found out that there are already many colors implemented
http://code.qt.io/cgit/qt/qtquickcontrols2.git/tree/src/imports/controls/material/qquickmaterialstyle_p.h

they're marked as internal

think I'll define all colors I need at root and where possible use the
internal colors from materialstyle
if they should go away one day I'll have only one place to change
less work as replicating all the color-calculations already done

Am 16.02.16 um 00:02 schrieb ekke:
> Hi,
>
> as I understand it right, I can define two colors for Material:
>
>   * primary
>   * accent
>
> and one for Universal : accent.
>
> At the moment I'm only focussing on Material.
> to follow Android Material Design Guide I also need a darker and
> lighter variation of primary
> is it ok, to do it this way:
>
> Qt.lighter(Material.accentColor, 1.1)
> Qt.darker(Material.accentColor, 1.1)
>
> as next I need some more colors:
>
>   * primaryText and secondaryText (depends from light or dark theme)
>   * textColorPrimary (textcolor used for text placed on primary color)
>
>
> as from documentation there's nothing generated / prepared from Qt
> Material
> so I have to create these colors by myself and then use thru the app ?
>
> what's the best in respect of performance and memory ?
> should I define these colors in my root qml as property and use this
> property thru the app ?
>
> color: root.secondaryTextColor
>
> last question:
> Is there a way to set the *Android Status Bar* color (Primary Dark) ?
> http://developer.android.com/training/material/theme.html#StatusBar
>
> thx

-- 

ekke (ekkehard gentz)

independent software architect
international development native mobile business apps
BlackBerry 10 | Qt Mobile (Android, iOS)
workshops - trainings - bootcamps

*BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner*

max-josefs-platz 30, D-83022 rosenheim, germany
mailto:ekke at ekkes-corner.org
blog: http://ekkes-corner.org
apps and more: http://appbus.org

twitter: @ekkescorner
skype: ekkes-corner
LinkedIn: http://linkedin.com/in/ekkehard/
Steuer-Nr: 156/220/30931 FA Rosenheim, UST-ID: DE189929490

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160216/e8a01925/attachment.html>


More information about the Interest mailing list