UNPKG

zircle

Version:

A frontend library to develop zoomable user interfaces

25 lines (23 loc) 583 B
import store from '../store' const themes = { getTheme () { return store.state.appStyle.theme }, getThemeMode () { return store.state.appStyle.mode }, getThemeShape () { return store.state.appStyle.shape }, setThemeShapeToSquare () { store.actions.setLog('- Theme shape: square') store.state.appStyle.shape = 'square' return store.state.appStyle.shape }, setThemeShapeToCircle () { store.actions.setLog('- Theme shape: circle') store.state.appStyle.shape = 'circle' return store.state.appStyle.shape } } export default themes