[pve-devel] [PATCH pve-manager 4/5] Add custom syle to pveHelpButton
Emmanuel Kasper
e.kasper at proxmox.com
Tue May 31 10:25:28 CEST 2016
Next / OK are already displayed in blue, which is the 'call-to-action'
color we use everywhere.
To prevent stealing attention from these buttons, switch help button
to grey
---
www/css/ext6-pve.css | 4 ++++
www/manager6/button/HelpButton.js | 4 +++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/www/css/ext6-pve.css b/www/css/ext6-pve.css
index 2f83863..b672892 100644
--- a/www/css/ext6-pve.css
+++ b/www/css/ext6-pve.css
@@ -363,3 +363,7 @@
left: -3px;
top: 2px;
}
+
+.pve-help-button .x-btn-inner {
+ color: black;
+}
diff --git a/www/manager6/button/HelpButton.js b/www/manager6/button/HelpButton.js
index ea66bbd..dfae5a9 100644
--- a/www/manager6/button/HelpButton.js
+++ b/www/manager6/button/HelpButton.js
@@ -11,7 +11,9 @@ Ext.define('PVE.button.Help', {
extend: 'Ext.button.Button',
alias: 'widget.pveHelpButton',
text: gettext('Help'),
- iconCls: 'fa fa-question-circle',
+ // make help button less flashy by styling it like toolbar buttons
+ iconCls: ' x-btn-icon-el-default-toolbar-small fa fa-question-circle',
+ cls: 'x-btn-default-toolbar-small pve-help-button',
hidden: true,
controller: {
xclass: 'Ext.app.ViewController',
--
2.1.4
More information about the pve-devel
mailing list