samples/custom-layout.yml in squib-0.0.4 vs samples/custom-layout.yml in squib-0.0.5
- old
+ new
@@ -1,6 +1,6 @@
-frame:
+frame:
x: 38
y: 38
width: 750
height: 1050
radius: 25
@@ -8,11 +8,11 @@
x: 125
y: 50
width: 625
height: 100
align: !ruby/symbol center #see http://www.yaml.org/YAML_for_ruby.html#symbols
- valign: !ruby/symbol middle
+ valign: !ruby/symbol middle
subtitle:
x: 150
y: 150
width: 575
height: 60
@@ -35,18 +35,18 @@
# Squib also supports its own merging-and-modify feature
# Called "extends"
# Any layout can extend another layout, so long as it's not a circle
# Order doesn't matter since it's done after YAML procesing
-# And, if the entry overrides
+# And, if the entry overrides
bonus: #becomes our bonus rectangle
x: 250
y: 600
width: 300
height: 200
radius: 32
-bonus_inner:
- extends: bonus
+bonus_inner:
+ extends: bonus
x: += 10 # i.e. 260
y: += 10 # i.e. 610
width: -= 20 # i.e. 180
height: -= 20 # i.e. 180
radius: -= 8