diff --git a/src/main/kotlin/com/theapache64/stackzy/ui/common/loading/funfact/FunFact.kt b/src/main/kotlin/com/theapache64/stackzy/ui/common/loading/funfact/FunFact.kt index da4f7aa..91ce149 100644 --- a/src/main/kotlin/com/theapache64/stackzy/ui/common/loading/funfact/FunFact.kt +++ b/src/main/kotlin/com/theapache64/stackzy/ui/common/loading/funfact/FunFact.kt @@ -28,24 +28,23 @@ fun FunFact( var currentFunFact by remember { mutableStateOf(pureRandom.get()) } Column( - horizontalAlignment = Alignment.CenterHorizontally + horizontalAlignment = Alignment.CenterHorizontally, + modifier = modifier.clickable { + isClicked = true + currentFunFact = pureRandom.get() + } ) { Text( text = "\"${currentFunFact.funFact}\"", fontStyle = FontStyle.Italic, color = MaterialTheme.colors.onSurface.copy(alpha = 0.5f), - fontSize = 15.sp, - modifier = modifier - .clickable { - isClicked = true - currentFunFact = pureRandom.get() - } + fontSize = 15.sp ) if (!isClicked) { Text( - text = "Click on the fact to get more", + text = "Click to get more facts", color = MaterialTheme.colors.onSurface.copy(alpha = 0.3f), fontSize = 13.sp, ) diff --git a/~/.lolcommits/stackzy/config.yml b/~/.lolcommits/stackzy/config.yml new file mode 100644 index 0000000..65f9cf1 --- /dev/null +++ b/~/.lolcommits/stackzy/config.yml @@ -0,0 +1,22 @@ +--- +loltext: + :enabled: true + :message: + :color: white + :font: /Users/theapache64/Downloads/raleway/Raleway-Light.ttf + :position: C + :size: 30 + :stroke_color: none + :uppercase: true + :sha: + :color: white + :font: /Users/theapache64/Downloads/raleway/Raleway-Light.ttf + :position: S + :size: 20 + :stroke_color: none + :uppercase: false + :overlay: + :enabled: true + :border: + :enabled: false +