You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2019/12/05 08:08:44 UTC
[royale-asjs] 02/02: make panels look better
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 37079538f2d8cfd97eb6f7954e509a1d05bc544a
Author: Alex Harui <ah...@apache.org>
AuthorDate: Thu Dec 5 00:08:23 2019 -0800
make panels look better
---
frameworks/projects/MXRoyale/src/main/resources/defaults.css | 10 +++++++++-
.../projects/SparkRoyale/src/main/resources/defaults.css | 7 +++++++
.../src/main/royale/spark/components/beads/PanelView.as | 2 +-
3 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/frameworks/projects/MXRoyale/src/main/resources/defaults.css b/frameworks/projects/MXRoyale/src/main/resources/defaults.css
index 909428f..a1dea0c 100644
--- a/frameworks/projects/MXRoyale/src/main/resources/defaults.css
+++ b/frameworks/projects/MXRoyale/src/main/resources/defaults.css
@@ -333,6 +333,13 @@ Panel .TitleBar
background-color: #FFFFFF;
}
+.TitleBarTitle
+{
+ position: absolute;
+ left: 6px;
+ top: 6px;
+}
+
PanelTitleBar
{
IBeadModel: ClassReference("org.apache.royale.html.beads.models.TitleBarModel");
@@ -340,11 +347,12 @@ PanelTitleBar
IBeadLayout: ClassReference("org.apache.royale.html.beads.layouts.FlexibleFirstChildHorizontalLayout");
iMeasurementBead: ClassReference("org.apache.royale.html.beads.TitleBarMeasurementBead");
background-color: #E2E2E2;
- padding: 2px;
height: 30px;
flex-grow: 0;
min-height: 30px;
font-weight: bold;
+ padding-left: 1px;
+ padding-right: 1px;
border-bottom: 1px solid #333333;
}
diff --git a/frameworks/projects/SparkRoyale/src/main/resources/defaults.css b/frameworks/projects/SparkRoyale/src/main/resources/defaults.css
index 98e2622..97aa1c8 100644
--- a/frameworks/projects/SparkRoyale/src/main/resources/defaults.css
+++ b/frameworks/projects/SparkRoyale/src/main/resources/defaults.css
@@ -202,6 +202,13 @@ TitleWindow
IBeadView: ClassReference("spark.components.beads.TitleWindowView");
}
+.TitleBarCloseButton
+{
+ position: absolute;
+ right: 17px;
+ top: 8px;
+}
+
/* -------------------------------------------------------
* SWF specific styles
* -------------------------------------------------------
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/PanelView.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/PanelView.as
index 16bc209..56ab2fa 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/PanelView.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/PanelView.as
@@ -133,7 +133,7 @@ class PanelLayout extends LayoutBase
h = content.height + 2 + titleBar.getExplicitOrMeasuredHeight();
titleBar.setActualSize(w - 2, titleBar.getExplicitOrMeasuredHeight());
content.setActualSize(w - 2, h - titleBar.height - 2);
- content.move(0, titleBar.height);
+ content.move(0, titleBar.height + 1);
return false;
}
}