Mercurial > public > geoquiz
diff GeoQuiz/Helpers/GameToolbar.swift @ 8:e09959b4e4a8
fix bugs
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Thu, 06 Oct 2022 11:14:34 +0200 |
parents | d945e52b0704 |
children |
line wrap: on
line diff
--- a/GeoQuiz/Helpers/GameToolbar.swift Tue Oct 04 18:54:24 2022 +0200 +++ b/GeoQuiz/Helpers/GameToolbar.swift Thu Oct 06 11:14:34 2022 +0200 @@ -24,7 +24,7 @@ .padding(10) .background( Circle() - .foregroundStyle(.regularMaterial) + .foregroundStyle(.ultraThickMaterial) ) } } @@ -37,8 +37,14 @@ .foregroundColor(color) .padding() .background( - Circle() - .foregroundStyle(.regularMaterial) + Group { + if game.userScore < 1000 { + Circle() + } else { + Capsule() + } + } + .foregroundStyle(.ultraThickMaterial) ) } .font(.title2) @@ -55,7 +61,7 @@ .padding(10) .background( Capsule() - .foregroundStyle(.regularMaterial) + .foregroundStyle(.ultraThickMaterial) ) .scaleEffect(game.livesScaleAmount) }