settled on gloss pink nice background

This commit is contained in:
talksik
2022-01-04 15:45:47 -08:00
parent 32b8e3702e
commit fff138c1bc
16 changed files with 139 additions and 10 deletions
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "beach3.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "flowers.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 907 KiB

@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "glosspink.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "mountains.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "snowwhite.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "snowwhite2.jpg",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB

+7 -1
View File
@@ -14,7 +14,13 @@ struct SystemImages {
"clouds2", "clouds2",
"waves", "waves",
"beach", "beach",
"beach2" "beach2",
"beach3",
"flowers",
"mountains",
"snowwhite",
"snowwhite2",
"glosspink"
] ]
static let avatars = [ static let avatars = [
@@ -107,7 +107,7 @@ struct ConvoFooterView: View {
} }
} }
.frame(maxWidth: .infinity, maxHeight: 60) // 60 is the height of the footer control big circle .frame(maxWidth: .infinity, maxHeight: 60) // 60 is the height of the footer control big circle
.background(Color.white.opacity(0.5)) .background(Color.white.opacity(0.8))
.clipShape(RoundedRectangle(cornerRadius: 30, style: .continuous)) .clipShape(RoundedRectangle(cornerRadius: 30, style: .continuous))
.shadow(color: Color.black.opacity(0.25), radius: 30, x: 0, y: 20) .shadow(color: Color.black.opacity(0.25), radius: 30, x: 0, y: 20)
} }
@@ -122,7 +122,7 @@ struct CircleFooterView: View {
.padding(.trailing, 10) .padding(.trailing, 10)
} }
.frame(maxWidth: .infinity, maxHeight: 60) // 60 is the height of the footer control big circle .frame(maxWidth: .infinity, maxHeight: 60) // 60 is the height of the footer control big circle
.background(Color.white.opacity(0.5)) .background(Color.white.opacity(0.8))
.clipShape(RoundedRectangle(cornerRadius: 30, style: .continuous)) .clipShape(RoundedRectangle(cornerRadius: 30, style: .continuous))
.shadow(color: Color.black.opacity(0.25), radius: 30, x: 0, y: 20) .shadow(color: Color.black.opacity(0.25), radius: 30, x: 0, y: 20)
.transition(.scale) .transition(.scale)
@@ -15,7 +15,6 @@ struct WavesGlassBackgroundView: View {
var isRecording: Bool = false var isRecording: Bool = false
@State var animateWaves = false @State var animateWaves = false
@State var backgroundImage = ""
let recordingColors = [NirvanaColor.solidBlue, NirvanaColor.dimTeal, Color.orange.opacity(0.8), NirvanaColor.teal.opacity(0.7), NirvanaColor.teal.opacity(0.7), NirvanaColor.solidTeal.opacity(0.7), NirvanaColor.solidBlue] let recordingColors = [NirvanaColor.solidBlue, NirvanaColor.dimTeal, Color.orange.opacity(0.8), NirvanaColor.teal.opacity(0.7), NirvanaColor.teal.opacity(0.7), NirvanaColor.solidTeal.opacity(0.7), NirvanaColor.solidBlue]
let normalColors = [NirvanaColor.solidBlue, NirvanaColor.dimTeal, Color.orange.opacity(0.4), NirvanaColor.teal.opacity(0.5), NirvanaColor.teal.opacity(0.3), NirvanaColor.solidTeal.opacity(0.3), NirvanaColor.solidBlue] let normalColors = [NirvanaColor.solidBlue, NirvanaColor.dimTeal, Color.orange.opacity(0.4), NirvanaColor.teal.opacity(0.5), NirvanaColor.teal.opacity(0.3), NirvanaColor.solidTeal.opacity(0.3), NirvanaColor.solidBlue]
@@ -28,12 +27,14 @@ struct WavesGlassBackgroundView: View {
center: .bottom, center: .bottom,
angle: .degrees(120)) angle: .degrees(120))
Image("beach2") Image("glosspink")
.resizable() .resizable()
.blur(radius: 5)
LinearGradient(gradient: Gradient( LinearGradient(gradient: Gradient(
colors: [NirvanaColor.white.opacity(0.2), NirvanaColor.white.opacity(1.0)]), startPoint: .bottom, endPoint: .top) colors: [NirvanaColor.white.opacity(0), NirvanaColor.white.opacity(1.0)]), startPoint: .bottom, endPoint: .top)
getWave(peakPercentage: 0.4, troughPercentage: 0.65, peakAltercation: baseLineY, troughAltercation: baseLineY - 50) getWave(peakPercentage: 0.4, troughPercentage: 0.65, peakAltercation: baseLineY, troughAltercation: baseLineY - 50)
.foregroundColor(NirvanaColor.dimTeal.opacity(0.5)) .foregroundColor(NirvanaColor.dimTeal.opacity(0.5))
@@ -67,10 +68,6 @@ struct WavesGlassBackgroundView: View {
.onAppear() { .onAppear() {
// start repeat animation for waves // start repeat animation for waves
self.animateWaves = true self.animateWaves = true
// randomly choose a wallpaper out of all available
let randomInt = Int.random(in: 0..<SystemImages.wallpapers.count)
self.backgroundImage = SystemImages.wallpapers[randomInt]
} }
} }