Commit 04b400d7 authored by Richard's avatar Richard

worked on simualtion browser ui

parent fb8c1d76
...@@ -48,6 +48,10 @@ Ext.define('app.controller.Main', { ...@@ -48,6 +48,10 @@ Ext.define('app.controller.Main', {
'#overlay': { '#overlay': {
hide: 'callRemoveImages', hide: 'callRemoveImages',
},
'#opensimulations': {
tap: 'openSimulations'
} }
} }
...@@ -230,7 +234,10 @@ Ext.define('app.controller.Main', { ...@@ -230,7 +234,10 @@ Ext.define('app.controller.Main', {
console.log('failed to create images'); console.log('failed to create images');
} }
}); });
},
openSimulations: function(){
console.log('opensimulations');
} }
}); });
......
...@@ -13,6 +13,7 @@ Ext.define("app.view.List", ...@@ -13,6 +13,7 @@ Ext.define("app.view.List",
title: 'Simulations', title: 'Simulations',
config: { config: {
ui: 'lighter_blue',
items: [ items: [
{ {
id: 'cities', id: 'cities',
......
...@@ -8,13 +8,21 @@ Ext.define('app.view.Simulation', { ...@@ -8,13 +8,21 @@ Ext.define('app.view.Simulation', {
{ {
docked: 'top', docked: 'top',
xtype: 'toolbar', xtype: 'toolbar',
ui: 'darker_blue',
title: 'Flood Simulation Browser', title: 'Flood Simulation Browser',
items : [{
id: 'simulationOptions',
xtype: 'button',
text: 'simulations',
right: 0,
top: 7,
ui: ['square','blue'],
}]
}, },
{ {
xtype: 'SimulationMap', xtype: 'SimulationMap',
flex: 2, flex: 2,
}], }],
} }
}); });
......
...@@ -19,8 +19,8 @@ Ext.define('app.view.StepsOverlay', { ...@@ -19,8 +19,8 @@ Ext.define('app.view.StepsOverlay', {
//draggable: true, //draggable: true,
autoDestroy: true, autoDestroy: true,
hidden: true, hidden: true,
width: 80, width: 120,
height: 150, height: 100,
scroll: false, scroll: false,
items: [ items: [
{ {
...@@ -28,7 +28,8 @@ Ext.define('app.view.StepsOverlay', { ...@@ -28,7 +28,8 @@ Ext.define('app.view.StepsOverlay', {
id: 'closebutton', id: 'closebutton',
iconCls: 'delete', iconCls: 'delete',
iconMask: true, iconMask: true,
height: 10, height: 10,
ui: 'red',
top: 0, top: 0,
right: 0, right: 0,
border: 'solid', border: 'solid',
...@@ -36,30 +37,31 @@ Ext.define('app.view.StepsOverlay', { ...@@ -36,30 +37,31 @@ Ext.define('app.view.StepsOverlay', {
scope: this, scope: this,
}, },
{ {
top: 50, top: 10,
left: 20,
align: 'center', align: 'center',
items : [ items : [
{ {
xtype: "button", xtype: "button",
id: 'forward', id: 'forward',
ui: 'blue',
cls: 'overlay-button', cls: 'overlay-button',
width: 45, width: 45,
iconCls: 'arrow_up', iconCls: 'arrow_up',
floating: 'right', floating: 'right',
iconMask: true, iconMask: true,
align: 'center', align: 'center',
left: 20,
}, },
{ {
top: 50, top: 50,
xtype: "button", xtype: "button",
id: 'backwards', id: 'backwards',
ui: 'blue',
cls: 'overlay-button', cls: 'overlay-button',
width: 45, width: 45,
floating: 'left', floating: 'left',
iconCls: 'arrow_down', iconCls: 'arrow_down',
left: 20,
align: 'center', align: 'center',
iconMask: true, iconMask: true,
}] }]
......
This source diff could not be displayed because it is too large. You can view the blob instead.
@import 'sencha-touch/default/all'; @import 'sencha-touch/default/all';
@include pictos-iconmask('close_overlay');
@include sencha-toolbar-ui('darker_blue', #003F69, 'glossy');
@include sencha-toolbar-ui('lighter_blue', #386EBA, 'glossy');
@include sencha-button-ui('blue', #003F69, 'glossy');
@include sencha-button-ui('red', #C40000, 'glossy');
// You may remove any of the following modules that you // You may remove any of the following modules that you
// do not use in order to create a smaller css file. // do not use in order to create a smaller css file.
...@@ -17,44 +22,4 @@ ...@@ -17,44 +22,4 @@
//@include sencha-msgbox; //@include sencha-msgbox;
// Your custom code goes here...
#overlay {
//@include border-radius(10px);
// needs latest Compass, add '@import "compass"' to your scss
background-color: rgb(255,255,255); // Old browsers
@include filter-gradient(#ffffff, #b2b2b2, vertical); // IE6-9
@include background-image(linear-gradient(top, rgba(255,255,255,1) 0%,rgba(241,241,241,1) 65%,rgba(225,225,225,1) 82%,rgba(178,178,178,1) 100%));
}
#forward {
// needs latest Compass, add '@import "compass"' to your scss
background-color: rgb(255,48,25); // Old browsers
@include filter-gradient(#ff3019, #cf0404, vertical); // IE6-9
@include background-image(linear-gradient(top, rgba(255,48,25,1) 0%,rgba(207,4,4,1) 100%));
}
#backwards {
// needs latest Compass, add '@import "compass"' to your scss
background-color: rgb(255,48,25); // Old browsers
@include filter-gradient(#ff3019, #cf0404, vertical); // IE6-9
@include background-image(linear-gradient(top, rgba(255,48,25,1) 0%,rgba(207,4,4,1) 100%));
}
.x-button-pressed.overlay-button {
// needs latest Compass, add '@import "compass"' to your scss
background-color: rgb(207,4,4); // Old browsers
@include filter-gradient(#cf0404, #ff3019, vertical); // IE6-9
@include background-image(linear-gradient(top, rgba(207,4,4,1) 0%,rgba(255,48,25,1) 100%));
}
.x-button-pressed.overlay-button {
// needs latest Compass, add '@import "compass"' to your scss
background-color: rgb(207,4,4); // Old browsers
@include filter-gradient(#cf0404, #ff3019, vertical); // IE6-9
@include background-image(linear-gradient(top, rgba(207,4,4,1) 0%,rgba(255,48,25,1) 100%));
}
#closebutton {
background: none;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment