From 77c3f948b2e977ef4621ba011c055037d2d14f11 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Leroy?= Date: Mon, 26 Oct 2020 12:41:38 +0000 Subject: [PATCH] Improve css for rcp --- org.argeo.suite.theme.default/rap/work.css | 34 ++++++++++++++++--- org.argeo.suite.theme.default/swt/app.css | 22 +++++++----- .../src/org/argeo/suite/ui/SuiteStyle.java | 2 +- 3 files changed, 43 insertions(+), 15 deletions(-) diff --git a/org.argeo.suite.theme.default/rap/work.css b/org.argeo.suite.theme.default/rap/work.css index 937d299..22e2f24 100644 --- a/org.argeo.suite.theme.default/rap/work.css +++ b/org.argeo.suite.theme.default/rap/work.css @@ -82,7 +82,7 @@ Composite.argeo-suite-mainTabBody { .argeo-suite-mainTab { background-color: #eee; - border: 1px solid #bbb; + border: 1px solid #888; } ToolItem.argeo-suite-mainTab { @@ -90,8 +90,13 @@ ToolItem.argeo-suite-mainTab { background-color: #eee; } +ToolItem.argeo-suite-mainTab:hover { + border: 1px solid #fff; +} + + Button.argeo-suite-mainTab { - border: none; + border: 1px solid #eee; background-color: #eee; } @@ -109,13 +114,32 @@ Button.argeo-suite-mainTab:hover { color: white; /*background-color: #00294b;*/ background-color: #5882b5; - border: 1px solid #00294b; + border:1px solid #888; } ToolItem.argeo-suite-mainTabSelected { - border: none; + border: 1px solid #5882b5; +} + +ToolItem.argeo-suite-mainTabSelected:hover { + border: 1px solid white; } Button.argeo-suite-mainTabSelected { border: none; -} \ No newline at end of file +} + +Sash { + border: 1px solid white; + background-image: none; + background-color: white; +} + +Sash:hover { + border: 1px solid #5882b5; + background-color: #5882b5; +} + +TreeItem{ + background-color:#f00; +} \ No newline at end of file diff --git a/org.argeo.suite.theme.default/swt/app.css b/org.argeo.suite.theme.default/swt/app.css index 937d299..3a7b671 100644 --- a/org.argeo.suite.theme.default/swt/app.css +++ b/org.argeo.suite.theme.default/swt/app.css @@ -4,7 +4,7 @@ } .argeo-suite-headerTitle { - font: bold 18px sans-serif; + font: bold 14px sans-serif; color: white; background-color: #00294b; } @@ -14,7 +14,7 @@ } Label.argeo-suite-leadPane { - font: 14px sans-serif; + font: 11px sans-serif; color: #888; background-color: #eee; } @@ -24,7 +24,7 @@ Button.argeo-suite-leadPane:hover { } .argeo-suite-recentItems { - font: bold 14px sans-serif; + font: bold 13px sans-serif; color: white; background-color: #00294b; padding: 8px 16px; @@ -32,11 +32,11 @@ Button.argeo-suite-leadPane:hover { .argeo-suite-titleContainer { background-color: #00294b; - padding: 6px 8px 4px 8px; } .argeo-suite-titleLabel { - font: bold 14px sans-serif; + font: bold 13px sans-serif; + margin: 6px 8px 4px 8px; color: white; background-color: #00294b; } @@ -44,12 +44,16 @@ Button.argeo-suite-leadPane:hover { .argeo-suite-subTitleLabel { font: italic 14px sans-serif; color: #777; - padding: 4px 8px; + margin: 4px 8px; +} + +.argeo-suite-formLine{ + padding: 4px 8px 4px 16px; } .argeo-suite-simpleLabel { - font: bold 14px sans-serif; - padding: 0 0 0 8px; + font: normal 11px sans-serif; + border:8px solid #eee; } .argeo-suite-simpleText { @@ -57,7 +61,7 @@ Button.argeo-suite-leadPane:hover { } .argeo-suite-titleCell { - font: bold 14px sans-serif; + font: bold 11px sans-serif; background-color: #ddd; } diff --git a/org.argeo.suite.ui/src/org/argeo/suite/ui/SuiteStyle.java b/org.argeo.suite.ui/src/org/argeo/suite/ui/SuiteStyle.java index 4e825ec..24a8221 100644 --- a/org.argeo.suite.ui/src/org/argeo/suite/ui/SuiteStyle.java +++ b/org.argeo.suite.ui/src/org/argeo/suite/ui/SuiteStyle.java @@ -11,7 +11,7 @@ public enum SuiteStyle implements CmsStyle { // Lead pane leadPane, leadPaneItem, // Group composite - titleContainer, titleLabel, subTitleLabel, + titleContainer, titleLabel, subTitleLabel,formLine, // Forms elements simpleLabel, simpleText, // table -- 2.30.2