royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject [royale-asjs.wiki] branch master updated: Added “missing features” section to start documenting what we need to work on.
Date Sun, 22 Oct 2017 21:18:23 GMT
This is an automated email from the ASF dual-hosted git repository.

harbs pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/royale-asjs.wiki.git


The following commit(s) were added to refs/heads/master by this push:
     new 747ad7d  Added “missing features” section to start documenting what we need to
work on.
747ad7d is described below

commit 747ad7d8d509692be2f1e66fa02cbd0374af3753
Author: Harbs <harbs@in-tools.com>
AuthorDate: Mon Oct 23 00:18:18 2017 +0300

    Added “missing features” section to start documenting what we need to work on.
---
 _Sidebar.md              |  3 +++
 feature-button-states.md | 26 ++++++++++++++++++++++++++
 2 files changed, 29 insertions(+)

diff --git a/_Sidebar.md b/_Sidebar.md
index f1b6956..a95de89 100644
--- a/_Sidebar.md
+++ b/_Sidebar.md
@@ -12,6 +12,9 @@
 - [Migrating From Flex](migrating-flex)
 - [Migrating From FlexJS](migrating-flexjs)
 
+## Missing Features
+[Button States](feature-button-states)
+
 ## Board Reports
 
 - [Board Reports](Board-Reports)
diff --git a/feature-button-states.md b/feature-button-states.md
new file mode 100644
index 0000000..8091e63
--- /dev/null
+++ b/feature-button-states.md
@@ -0,0 +1,26 @@
+## Button States
+
+It's currently difficult to specify button states using CSS.
+
+Ideally, it should be possible to specify something like this:
+
+    .myButton:hover{
+        background-image: url ('assets/button_hover.png');
+        background-repeat: no-repeat;
+    }
+    .myButton:active{
+        background-image: url ('assets/button_active.png');
+        background-repeat: no-repeat;
+    }
+
+Or something like this as is possible in Flex:
+
+    Button.special
+    {
+        overSkin: Embed(source="assets/over/special.png"); 
+        upSkin: Embed(source="assets/up/special.png");
+        downSkin: Embed(source="assets/down/special.png");
+        disabledSkin: Embed(source="assets/disabled/special.png");
+    }
+
+Part of the problem is that `ImageButton` has no view and `ImageButton` wraps `<img>`
in HTML. In Flash there is a view which has different `Sprite`s for the different states.
I'm not sure if there's a reason why the HTML component does not do the same.
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
['"commits@royale.apache.org" <commits@royale.apache.org>'].

Mime
View raw message