Skip to content

Commit 5f99dbf

Browse files
committed
make update menu style Derek-proof
1 parent 606c43e commit 5f99dbf

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

src/components/updatemenus/attributes.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,20 +124,19 @@ module.exports = {
124124

125125
bgcolor: {
126126
valType: 'color',
127-
dflt: colorAttrs.lightLine,
128127
role: 'style',
129128
description: 'Sets the background color of the update menu buttons.'
130129
},
131130
bordercolor: {
132131
valType: 'color',
133-
dflt: colorAttrs.defaultLine,
132+
dflt: colorAttrs.borderLine,
134133
role: 'style',
135134
description: 'Sets the color of the border enclosing the update menu.'
136135
},
137136
borderwidth: {
138137
valType: 'number',
139138
min: 0,
140-
dflt: 0,
139+
dflt: 1,
141140
role: 'style',
142141
description: 'Sets the width (in px) of the border enclosing the update menu.'
143142
}

src/components/updatemenus/constants.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ module.exports = {
5151
ry: 2,
5252

5353
// item text x offset off left edge
54-
textOffsetX: 10,
54+
textOffsetX: 12,
5555

5656
// item text y offset (w.r.t. middle)
5757
textOffsetY: 3,
5858

5959
// arrow offset off right edge
60-
arrowOffsetX: 2,
60+
arrowOffsetX: 4,
6161

6262
// gap between header and buttons
6363
gapButtonHeader: 5,
@@ -66,8 +66,8 @@ module.exports = {
6666
gapButton: 2,
6767

6868
// color given to active buttons
69-
activeColor: '#d3d3d3',
69+
activeColor: '#F4FAFF',
7070

7171
// color given to hovered buttons
72-
hoverColor: '#d3d3d3'
72+
hoverColor: '#F4FAFF'
7373
};

src/components/updatemenus/defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function menuDefaults(menuIn, menuOut, layoutOut) {
5353

5454
Lib.coerceFont(coerce, 'font', layoutOut.font);
5555

56-
coerce('bgcolor');
56+
coerce('bgcolor', layoutOut.paper_bgcolor);
5757
coerce('bordercolor');
5858
coerce('borderwidth');
5959
}

0 commit comments

Comments
 (0)