mirror of
https://github.com/lxsang/Diya-API.git
synced 2024-12-26 03:18:22 +01:00
42 lines
971 B
Smalltalk
42 lines
971 B
Smalltalk
Class {
|
|
#name : #DiyaDefaultTheme,
|
|
#superclass : #DiyaStyleSheet,
|
|
#category : #'Diya-UIThemes'
|
|
}
|
|
|
|
{ #category : #define }
|
|
DiyaDefaultTheme >> defineGlobal [
|
|
self define: #global styles: {
|
|
#bgColor -> (Color r: 0.2118 g: 0.2118 b: 0.2118).
|
|
#color -> Color white.
|
|
#border -> 0.
|
|
#fontSize -> 18.
|
|
#fontFamily -> DiyaFontManager uniqueInstance defaultFamily.
|
|
#textIconFamily -> 'bootstrap-icons'.
|
|
#fontStyle -> DiyaFontManager uniqueInstance defaultStyle.
|
|
#borderColor -> Color transparent.
|
|
#xAlign -> #left.
|
|
#yAlign -> #middle.
|
|
#iconSize -> 24.
|
|
}
|
|
]
|
|
|
|
{ #category : #define }
|
|
DiyaDefaultTheme >> defineLoadingBar [
|
|
self define: #loadingBar styles: {
|
|
#bgColor -> Color red.
|
|
#border -> 1.
|
|
#borderColor -> Color white.
|
|
};
|
|
define: #loadingProgress styles: {
|
|
#bgColor -> Color white.
|
|
}
|
|
]
|
|
|
|
{ #category : #initialization }
|
|
DiyaDefaultTheme >> initialize [
|
|
super initialize.
|
|
self defineGlobal.
|
|
self defineLoadingBar.
|
|
]
|