Skip to content

Commit 1dad5cf

Browse files
committed
feat: Further work for themes
1 parent dd0b823 commit 1dad5cf

File tree

135 files changed

+2735
-1044
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+2735
-1044
lines changed

dev/app.entry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Vue.use(VueRouter)
1414
Vue.use(VueTouch)
1515
Vue.use(Quasar)
1616

17-
import '../src/themes/ios.theme.styl'
17+
import '../src/themes/quasar.mat.styl'
1818

1919
var router = new VueRouter()
2020

dev/themes/app.ios.styl

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// App Shared Variables
2+
// --------------------------------------------------
3+
// Shared Sass variables go in the app.variables.scss file
4+
@import 'app.variables'
5+
6+
7+
// App iOS Design Variables
8+
// --------------------------------------------------
9+
// iOS Design only Stylus variables can go here
10+
11+
$generic-border-radius ?= 4px
12+
13+
$ios-primary ?= #f8f8f8
14+
$ios-secondary ?= #8c8c8c
15+
$ios-tertiary ?= #b2b2b2
16+
17+
$generic-input-size ?= 30px
18+
$generic-input-border-width ?= 2px
19+
20+
$typography-font-family ?= '-apple-system', 'Helvetica Neue', Helvetica, Arial, sans-serif
21+
$typography-font-size ?= 1rem
22+
$typography-p-margin ?= .5rem 0 1rem 0
23+
$typography-p-line-height ?= 1.4rem
24+
25+
26+
// Quasar iOS Design Stylus
27+
// --------------------------------------------------
28+
// Custom App variables must be declared before importing Quasar.
29+
// Quasar will use its default values when a custom variable isn't provided.
30+
@import 'quasar-frameowrk/quasar.ios'
31+
32+
33+
// App iOS Design Only Stylus
34+
// --------------------------------------------------
35+
// CSS that should only apply to the iOS Design app

dev/themes/app.mat.styl

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// App Shared Variables
2+
// --------------------------------------------------
3+
// Shared Sass variables go in the app.variables.scss file
4+
@import 'app.variables'
5+
6+
7+
// App Material Design Variables
8+
// --------------------------------------------------
9+
// Material Design only Stylus variables can go here
10+
11+
$generic-border-radius ?= 2px
12+
$generic-input-size ?= 25px
13+
$generic-input-border-width ?= 2px
14+
15+
$typography-font-family ?= 'Roboto'
16+
$typography-font-size ?= 1rem
17+
$typography-p-margin ?= .5rem 0 1rem 0
18+
$typography-p-line-height ?= 1.4rem
19+
20+
21+
// Quasar Material Design Stylus
22+
// --------------------------------------------------
23+
// Custom App variables must be declared before importing Quasar.
24+
// Quasar will use its default values when a custom variable isn't provided.
25+
@import 'quasar-frameowrk/quasar.md'
26+
27+
28+
// App Material Design Only Stylus
29+
// --------------------------------------------------
30+
// CSS that should only apply to the Material Design app

dev/themes/app.variables.styl

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// App Shared Variables
2+
// --------------------------------------------------
3+
// To customize the look and feel of this app, you can override
4+
// the Stylus variables found in Quasar's source Stylus files. Setting
5+
// variables before Quasar's Stylus will use these variables rather than
6+
// Quasar's default Stylus variable values. Stylus variables specific
7+
// to the themes belong in either the app.ios.styl or app.md.styl files.
8+
9+
10+
// App Shared Color Variables
11+
// --------------------------------------------------
12+
// It's highly recommended to change the default colors
13+
// to match your app's branding.
14+
15+
$primary = #027be3
16+
$secondary = #26A69A
17+
$tertiary = #555
18+
19+
$neutral = #E0E1E2
20+
$positive = #21BA45
21+
$negative = #DB2828
22+
$info = #31CCEC
23+
$warning = #F2C037
24+
25+
$light = #f4f4f4
26+
$dark = #333
27+
$faded = #777
28+
29+
$text-color = lighten(black, 17%)
30+
$background-color = white
31+
32+
$link-color = lighten($primary, 25%)
33+
$link-color-active = $primary

dev/views/typography.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ export default {
117117
}
118118
},
119119
ready () {
120-
Events.events.on('app:visibility', this.writeVisibilityState)
120+
Events.on('app:visibility', this.writeVisibilityState)
121121
},
122122
destroyed () {
123-
Events.events.off('app:visibility', this.writeVisibilityState)
123+
Events.off('app:visibility', this.writeVisibilityState)
124124
}
125125
}
126126
</script>

src/app-visibility.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
import $ from 'jquery'
3-
import { events } from './events'
3+
import Events from './events'
44

55
let
66
body = $('body'),
@@ -31,7 +31,7 @@ function onchange (evt) {
3131
}
3232

3333
appVisibility = state
34-
events.trigger('app:visibility', state)
34+
Events.trigger('app:visibility', state)
3535
body.removeClass('app-' + (state === 'visible' ? h : v)).addClass('app-' + state)
3636
}
3737

File renamed without changes.
File renamed without changes.

src/action-sheet/action-sheet.js renamed to src/components/action-sheet/action-sheet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import $ from 'jquery'
22
import Modal from '../modal/modal'
3-
import theme from '../themes/themes'
3+
import theme from '../../themes/themes'
44

55
import matTemplate from './action-sheet-material.html'
66
import iosTemplate from './action-sheet-ios.html'

0 commit comments

Comments
 (0)