From c886fdf811e0453b576e9a3700e18adb5b15d418 Mon Sep 17 00:00:00 2001 From: theapache64 Date: Fri, 7 Jan 2022 23:08:42 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=86=99=20update=20loading=20message=20cli?= =?UTF-8?q?ck=20position?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ui/common/loading/funfact/FunFact.kt | 15 ++++++------- ~/.lolcommits/stackzy/config.yml | 22 +++++++++++++++++++ 2 files changed, 29 insertions(+), 8 deletions(-) create mode 100644 ~/.lolcommits/stackzy/config.yml 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 +