Skip to content

Commit

Permalink
πŸ†™ update loading message click position
Browse files Browse the repository at this point in the history
  • Loading branch information
theapache64 committed Jan 7, 2022
1 parent 242ae17 commit c886fdf
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down
22 changes: 22 additions & 0 deletions ~/.lolcommits/stackzy/config.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c886fdf

Please sign in to comment.