Added textAlpha and textActiveAlpha to Button and ButtonGroup.
This commit is contained in:
@@ -78,6 +78,8 @@ export default class Theme {
|
||||
* large text.
|
||||
* @param {object} [opts.textStyleLargeActive=textStyleLarge + {fill: primaryColor}] - A textstyle object which
|
||||
* is used for large actived text.
|
||||
* @param {number} [opts.textAlpha=Theme.textAlpha] - The alpha value of text.
|
||||
* @param {number} [opts.textActiveAlpha=Theme.textActiveAlpha] - The alpha value of text when activated.
|
||||
*/
|
||||
constructor(opts = {}) {
|
||||
const colorPrimary = opts.primaryColor != null ? opts.primaryColor : 0x5ec7f8 // blue
|
||||
@@ -106,6 +108,8 @@ export default class Theme {
|
||||
strokeActive: color2,
|
||||
strokeActiveWidth: 0.6,
|
||||
strokeActiveAlpha: 1,
|
||||
textAlpha: 1,
|
||||
textActiveAlpha: 1,
|
||||
iconColor: color2,
|
||||
iconColorActive: colorPrimary,
|
||||
background: color1
|
||||
|
||||
Reference in New Issue
Block a user