Skip to content

Commit

Permalink
Tweaking home screen, made it "alpha" first release.
Browse files Browse the repository at this point in the history
  • Loading branch information
twerth committed May 30, 2015
1 parent 9ec32a4 commit c4935e4
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
PATH
remote: .
specs:
bluepotion (0.0.8)
bluepotion (0.1.0)

GEM
remote: https://rubygems.org/
specs:
newclear (1.0)
newclear (1.1)
reset-sim
rake (10.4.2)
reset-sim (1.0)
Expand Down
43 changes: 41 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,45 @@
BluePotion
-----------

Like [RedPotion](http://redpotion.org), but for RubyMotion Android.
## Warning, BluePotion is an alpha release.

## BluePotion is pre-alpha right now!
BluePotion is the Android version of [RedPotion](http://redpotion.org). We're spending a lot of time working on it right now. It's currently in Alpha.

We are building RMQ Android, ProMotion Android, and BluePotion all at once, and they all are inside BluePotion.

We're supporting Android XML layouts, using RMQ stylesheets the standard Android way, and eventually an exact copy of RedPotion's layout system.

Many things work, but there is a lot to do, so use it at your own risk.

To try it out:

```
gem install bluepotion
bluepotion create myapp
cd myapp
bundle
rake newclear
```

In your REPL, do this for fun:

```
rmq.log_tree
find(Potion::View).log
# etc
```

If you haven't setup Android yet, read this first: [Gant Laborde's post on Genymotion](http://www.iconoclastlabs.com/blog/rubymotion-android-in-the-emulator-with-genymotion).


Contributing

0. Create an issue in GitHub to make sure your PR will be accepted.
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Write tests for your changes
4. Make your changes
5. Document your changes in the `docs` folder
6. Commit your changes (`git commit -am 'Add some feature'`)
7. Push to the branch (`git push origin my-new-feature`)
8. Create new Pull Request
1 change: 1 addition & 0 deletions app/screens/home_screen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def load_view

Potion::LinearLayout.new(self.activity)
#Potion::FrameLayout.new(self.activity)
#Potion::RelativeLayout.new(self.activity)
end

def on_load
Expand Down
5 changes: 3 additions & 2 deletions app/stylesheets/home_screen_stylesheet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ def root_view(st)
end

def logo(st)
st.layout = {t: 20, w: 100, h: 100, centered: :horizontal}
#st.layout_center_horizontal = true
st.layout = {t: 0, w: 100, h: 100, centered: :horizontal}
st.image = image.resource("bluepotion_logo")
#st.layout_center_horizontal = true
end

def hello_label(st)
Expand All @@ -19,6 +19,7 @@ def hello_label(st)
end

def drink_button(st)
#st.layout = {t: 10, l: 40, fr: 40, fb: 10}
standard_button(st)
st.background_color = color.mustard
st.color = color.black
Expand Down
2 changes: 1 addition & 1 deletion lib/project/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module BluePotion
VERSION = "0.0.8"
VERSION = "0.1.0"
end

0 comments on commit c4935e4

Please sign in to comment.