Merge branch 'feat/watch-summary'
This commit is contained in:
commit
ebbc21dc0f
6 files changed
+247
-33
No files matched your search
@@ -50,7 +50,7 @@ class MainActivity : ComponentActivity() {
|
||||
}
|
||||
}
|
||||
|
||||
private enum class Page { DETAIL, TOP, PICKS, SUNSET, HOURS }
|
||||
private enum class Page { DETAIL, SKY, TOP, PICKS, SUNSET, HOURS }
|
||||
|
||||
@Composable
|
||||
private fun App(s: Summary?, loading: Boolean, opened: String?, onRetry: () -> Unit) {
|
||||
@@ -65,31 +65,30 @@ private fun App(s: Summary?, loading: Boolean, opened: String?, onRetry: () -> U
|
||||
StatePage(loading, onRetry)
|
||||
return
|
||||
}
|
||||
// 스킨에서 누른 각이 있으면 그 상세부터, 아래로 넘기면 나머지 장
|
||||
// 스킨 링에서 누른 각이 있으면 그 상세부터, 아니면 하늘 장부터
|
||||
val detail = opened?.let { c -> (s.top + s.picks).firstOrNull { it.code == c } }
|
||||
val pages = buildList {
|
||||
if (detail != null) add(Page.DETAIL)
|
||||
add(Page.SKY)
|
||||
if (s.top.isNotEmpty()) add(Page.TOP)
|
||||
if (s.picks.isNotEmpty()) add(Page.PICKS)
|
||||
if (s.sunset != null) add(Page.SUNSET)
|
||||
if (s.slots.isNotEmpty()) add(Page.HOURS)
|
||||
}
|
||||
if (pages.isEmpty()) {
|
||||
StatePage(loading = false, onRetry)
|
||||
return
|
||||
}
|
||||
val state = rememberPagerState { pages.size }
|
||||
Box(Modifier.fillMaxSize()) {
|
||||
VerticalPager(state = state, modifier = Modifier.fillMaxSize()) { i ->
|
||||
when (pages[i]) {
|
||||
Page.DETAIL -> DetailPage(detail!!, now)
|
||||
Page.SKY -> SkyPage(s, now)
|
||||
Page.TOP -> GakListPage("오늘의 각", s.top.take(3), bgButter, medals = true, now)
|
||||
Page.PICKS -> GakListPage("내 각", s.picks, bgMint, medals = false, now)
|
||||
Page.SUNSET -> SunsetPage(s.sunset!!, now)
|
||||
Page.HOURS -> HoursPage(s, now)
|
||||
}
|
||||
}
|
||||
val dot = if (pages[state.currentPage] == Page.SUNSET) Color.White else Tok.ink
|
||||
val page = pages[state.currentPage]
|
||||
val dot = if (page == Page.SUNSET || (page == Page.SKY && isDark(s.mode))) Color.White else Tok.ink
|
||||
VerticalPageIndicator(pagerState = state, selectedColor = dot, unselectedColor = dot.copy(alpha = 0.35f), backgroundColor = Color.Transparent)
|
||||
}
|
||||
}
|
||||
@@ -13,7 +13,8 @@ open class RankComplicationService(private val rank: Int) : SuspendingComplicati
|
||||
override suspend fun onComplicationRequest(request: ComplicationRequest): ComplicationData? {
|
||||
val s = withContext(Dispatchers.IO) { SummaryRepo.load(this@RankComplicationService) } ?: return null
|
||||
val g = s.top.getOrNull(rank - 1) ?: return null
|
||||
return gakData(this, request.complicationType, g.score.toString(), g.name, g.score, g.icon, g.code)
|
||||
// 가운데 해 구슬(1위)을 누르면 앱 하늘 장, 둘레 링은 그 각 상세
|
||||
return gakData(this, request.complicationType, g.score.toString(), g.name, g.score, g.icon, g.code.takeIf { rank > 1 })
|
||||
}
|
||||
|
||||
override fun getPreviewData(type: ComplicationType): ComplicationData = gakData(this, type, "${90 - rank * 2}", "${rank}위", 90 - rank * 2, "sun_cloud")
|
||||
|
||||
@@ -56,6 +56,17 @@ import androidx.wear.compose.material3.Text
|
||||
import java.time.Duration
|
||||
import java.time.Instant
|
||||
import kotlin.math.roundToInt
|
||||
import androidx.compose.animation.core.LinearEasing
|
||||
import androidx.compose.foundation.layout.BoxWithConstraints
|
||||
import androidx.compose.runtime.LaunchedEffect
|
||||
import androidx.compose.runtime.mutableFloatStateOf
|
||||
import androidx.compose.runtime.withFrameNanos
|
||||
import androidx.compose.ui.draw.shadow
|
||||
import androidx.compose.ui.geometry.CornerRadius
|
||||
import java.time.format.TextStyle as DateTextStyle
|
||||
import java.util.Locale
|
||||
import kotlin.math.cos
|
||||
import kotlin.math.sin
|
||||
|
||||
// 시안 크기는 큰 원형(227dp) 기준. 작은 원형(192dp)에서도 넘치지 않게 비율과 여백으로 잡는다.
|
||||
|
||||
@@ -88,7 +99,154 @@ private fun Floating(content: @Composable () -> Unit) {
|
||||
|
||||
@Composable
|
||||
fun Clock(now: Instant, color: Color) {
|
||||
T(hhmm(now), 11.sp, FontFamily.Default, color.copy(alpha = 0.8f), Modifier.fillMaxWidth().padding(top = 8.dp), weight = FontWeight.Bold)
|
||||
T(hhmm(now), 15.sp, FontFamily.Default, color.copy(alpha = 0.85f), Modifier.fillMaxWidth().padding(top = 6.dp), weight = FontWeight.Bold)
|
||||
}
|
||||
|
||||
// ───────────── 하늘 (앱 첫 장: 스킨은 초당 10장 안팎이라, 빠르게 흐르는 하늘은 여기서 60장으로) ─────────────
|
||||
|
||||
private val STARS = listOf(0.22f to 0.20f, 0.70f to 0.14f, 0.84f to 0.40f, 0.14f to 0.52f, 0.48f to 0.10f, 0.30f to 0.78f, 0.76f to 0.70f)
|
||||
|
||||
@Composable
|
||||
fun SkyPage(s: Summary, now: Instant) {
|
||||
val precip = s.precip
|
||||
val dark = isDark(s.mode)
|
||||
val night = s.mode == "night"
|
||||
val fg = if (dark) Color.White else Tok.ink
|
||||
val top = s.top.firstOrNull()
|
||||
BoxWithConstraints(Modifier.fillMaxSize().background(if (precip != null) precipBrush(precip, s.mode) else skyBrush(s.mode))) {
|
||||
val w = maxWidth
|
||||
if (night && precip == null) Canvas(Modifier.fillMaxSize()) {
|
||||
STARS.forEach { (x, y) -> drawCircle(Color.White, 1.4.dp.toPx(), Offset(size.width * x, size.height * y)) }
|
||||
}
|
||||
val cloudColor = when { precip == "rain" -> Color(0xFFDCE2EB); night -> Color(0xFFC9CDF0); else -> Color.White }
|
||||
SKY_CLOUDS.forEach { Cloud(cloudColor, it, w) }
|
||||
precip?.let { Precip(it, Modifier.fillMaxSize()) }
|
||||
Clock(now, fg)
|
||||
val day = now.atZone(KST).dayOfWeek.getDisplayName(DateTextStyle.FULL, Locale.KOREAN)
|
||||
T("$day · ${s.regionName.substringAfterLast(' ')}", 12.sp, color = fg, modifier = Modifier.fillMaxWidth().padding(top = 32.dp))
|
||||
if (!night) SunRays(Modifier.align(Alignment.Center).offset(y = (-6).dp).size(w * 0.62f))
|
||||
Orb(night, Modifier.align(Alignment.Center).offset(y = (-6).dp).size(w * 0.44f)) {
|
||||
T(top?.score?.toString() ?: "-", 38.sp, Tok.bagel, if (night) Color(0xFF2B2A5C) else Color.White)
|
||||
T(top?.name ?: "날씨각", 12.sp, color = if (night) Color(0xFF2B2A5C) else Color.White)
|
||||
}
|
||||
Row(Modifier.align(Alignment.BottomCenter).padding(bottom = w * 0.1f), horizontalArrangement = Arrangement.spacedBy(5.dp)) {
|
||||
Stat("thermo", s.tempC?.let { "${it.roundToInt()}°" } ?: "-°", dark)
|
||||
Stat("umbrella", s.rainLabel, dark)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** 구슬 둘레의 끝이 둥근 햇살 12개. 1분에 한 바퀴 천천히 돈다 */
|
||||
@Composable
|
||||
private fun SunRays(modifier: Modifier) {
|
||||
val t = rememberInfiniteTransition(label = "rays")
|
||||
val turn by t.animateFloat(0f, 360f, infiniteRepeatable(tween(60_000, easing = LinearEasing)), label = "turn")
|
||||
Canvas(modifier.graphicsLayer { rotationZ = turn }) {
|
||||
val c = Offset(size.width / 2, size.height / 2)
|
||||
val r1 = size.width * 0.4f
|
||||
val r2 = size.width * 0.462f
|
||||
repeat(12) { i ->
|
||||
val a = Math.toRadians(i * 30.0)
|
||||
val dir = Offset(cos(a).toFloat(), sin(a).toFloat())
|
||||
drawLine(Color(0xFFFFB347), c + dir * r1, c + dir * r2, size.width * 0.044f, StrokeCap.Round)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** 말랑 3D 해 구슬 (웹 .b-sun). 밤에는 달빛 보라 */
|
||||
@Composable
|
||||
private fun Orb(night: Boolean, modifier: Modifier, content: @Composable () -> Unit) {
|
||||
val stops = if (night) arrayOf(0f to Color.White, 0.35f to Color(0xFFE7E3FF), 0.72f to Color(0xFFB9B0F2), 1f to Color(0xFF8F86D9))
|
||||
else arrayOf(0f to Color(0xFFFFF5CF), 0.3f to Color(0xFFFFC86E), 0.68f to Color(0xFFFF8E4E), 1f to Color(0xFFEE6436))
|
||||
val glow = if (night) Color(0xFFBEB4FF) else Color(0xFFF06A3A)
|
||||
Box(
|
||||
modifier
|
||||
.shadow(18.dp, CircleShape, ambientColor = glow, spotColor = glow)
|
||||
.drawBehind {
|
||||
val c = Offset(size.width * 0.34f, size.height * 0.30f)
|
||||
drawCircle(Brush.radialGradient(*stops, center = c, radius = size.width * 0.96f))
|
||||
// 오른쪽 아래 그늘, 왼쪽 위 빛 (웹 inset 그림자 두 개)
|
||||
drawCircle(Brush.linearGradient(listOf(Color.Transparent, Color(if (night) 0x4D3C328C else 0x57AA3214)), Offset(size.width * 0.45f, size.height * 0.45f), Offset(size.width, size.height)))
|
||||
drawCircle(Brush.radialGradient(listOf(Color.White.copy(alpha = 0.45f), Color.Transparent), Offset(size.width * 0.28f, size.height * 0.25f), size.width * 0.35f))
|
||||
// 해에만 볼터치
|
||||
if (!night) listOf(0.18f, 0.82f).forEach { x ->
|
||||
drawOval(Color(0x73FF7A8A), Offset(size.width * x - size.width * 0.07f, size.height * 0.68f), Size(size.width * 0.14f, size.width * 0.08f))
|
||||
}
|
||||
},
|
||||
contentAlignment = Alignment.Center,
|
||||
) { Column(horizontalAlignment = Alignment.CenterHorizontally) { content() } }
|
||||
}
|
||||
|
||||
/** 구름 한 줄: 세로 위치·너비·높이(화면 비율), 한 번 가로지르는 초, 시작 위상 */
|
||||
private class SkyCloud(val y: Float, val w: Float, val h: Float, val sec: Int, val phase: Float)
|
||||
|
||||
// 위상을 엇갈려, 한쪽으로 빠질 때 다른 줄에서 새 구름이 들어온다
|
||||
private val SKY_CLOUDS = listOf(
|
||||
SkyCloud(0.30f, 0.19f, 0.07f, 9, 0f), SkyCloud(0.30f, 0.14f, 0.05f, 9, 0.5f),
|
||||
SkyCloud(0.56f, 0.13f, 0.05f, 6, 0.8f), SkyCloud(0.74f, 0.22f, 0.075f, 7, 0.45f),
|
||||
)
|
||||
|
||||
/** 왼쪽 밖에서 들어와 오른쪽 밖으로 빠지고 다시 왼쪽에서 (끝없이 흐르는 하늘) */
|
||||
@Composable
|
||||
private fun Cloud(c: Color, cl: SkyCloud, screen: Dp) {
|
||||
val t = rememberInfiniteTransition(label = "cloud")
|
||||
val p by t.animateFloat(0f, 1f, infiniteRepeatable(tween(cl.sec * 1000, easing = LinearEasing)), label = "drift")
|
||||
val w = screen * cl.w
|
||||
Canvas(Modifier.offset(y = screen * cl.y).size(w, screen * cl.h).graphicsLayer { translationX = ((p + cl.phase) % 1f) * (screen + w).toPx() - w.toPx() }) {
|
||||
drawCircle(c, size.height * 0.95f, Offset(size.width * 0.38f, size.height * 0.1f))
|
||||
drawRoundRect(c, cornerRadius = CornerRadius(size.height / 2))
|
||||
drawRoundRect(Color(0x33A0BEE6), Offset(0f, size.height * 0.55f), Size(size.width, size.height * 0.45f), CornerRadius(size.height / 2))
|
||||
}
|
||||
}
|
||||
|
||||
// 빗줄기·눈송이 하나: 가로 위치, 시작 위상, 한 번 떨어지는 데 걸리는 초, 크기 (모두 고정값이라 매번 같은 자리)
|
||||
private class Drop(val x: Float, val phase: Float, val sec: Float, val size: Float)
|
||||
|
||||
private val DROPS = java.util.Random(7).let { r -> List(42) { Drop(r.nextFloat(), r.nextFloat(), 0.7f + r.nextFloat() * 0.5f, 0.6f + r.nextFloat() * 0.4f) } }
|
||||
|
||||
/** 비는 추적추적 비스듬히, 눈은 천천히 흔들리며. 화면이 켜져 있는 동안만 그린다 */
|
||||
@Composable
|
||||
private fun Precip(kind: String, modifier: Modifier) {
|
||||
var time by remember { mutableFloatStateOf(0f) }
|
||||
LaunchedEffect(Unit) {
|
||||
val start = withFrameNanos { it }
|
||||
while (true) withFrameNanos { time = (it - start) / 1e9f }
|
||||
}
|
||||
val snow = kind == "snow"
|
||||
Canvas(modifier) {
|
||||
val h = size.height
|
||||
DROPS.forEachIndexed { i, d ->
|
||||
val period = if (snow) d.sec * 7f else d.sec
|
||||
val p = (time / period + d.phase) % 1f
|
||||
val y = p * (h + 40.dp.toPx()) - 20.dp.toPx()
|
||||
if (snow) {
|
||||
val x = d.x * size.width + sin((time / 2f + d.phase) * 2f * Math.PI.toFloat()) * 6.dp.toPx()
|
||||
drawCircle(Color.White.copy(alpha = 0.9f), (1.5f + 2f * d.size).dp.toPx(), Offset(x, y))
|
||||
} else {
|
||||
val len = 14.dp.toPx() * d.size
|
||||
val x = d.x * size.width + y * 0.12f
|
||||
drawLine(Color(0xCCEAF2FF), Offset(x, y), Offset(x - len * 0.12f, y - len), 1.5.dp.toPx(), StrokeCap.Round)
|
||||
// 셋 중 하나는 바닥에서 톡 튄다
|
||||
if (i % 3 == 0 && p > 0.86f) {
|
||||
val k = (p - 0.86f) / 0.14f
|
||||
drawCircle(Color(0x99EAF2FF), (2f + 6f * k).dp.toPx(), Offset(x, h * (0.8f + 0.12f * d.x)), style = Stroke(1.dp.toPx()), alpha = 1f - k)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun Stat(icon: String, text: String, dark: Boolean) {
|
||||
Row(
|
||||
Modifier.mallang(if (dark) Tok.statDark else Tok.stat, if (dark) Color.White.copy(alpha = 0.12f) else Tok.shade.copy(alpha = 0.9f), 14.dp)
|
||||
.padding(start = 5.dp, end = 9.dp, top = 3.dp, bottom = 6.dp),
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
horizontalArrangement = Arrangement.spacedBy(3.dp),
|
||||
) {
|
||||
Ic(icon, 16.dp)
|
||||
T(text, 12.sp, color = if (dark) Color.White else Tok.ink)
|
||||
}
|
||||
}
|
||||
|
||||
// ───────────── 워치 스킨에서 누른 각 ─────────────
|
||||
@@ -133,7 +291,7 @@ fun GakListPage(title: String, items: List<Gak>, bg: Brush, medals: Boolean, now
|
||||
Box(Modifier.fillMaxSize().background(bg)) {
|
||||
Clock(now, Tok.ink)
|
||||
Column(
|
||||
Modifier.fillMaxSize().padding(start = 20.dp, end = 20.dp, top = 30.dp),
|
||||
Modifier.fillMaxSize().padding(start = 20.dp, end = 20.dp, top = 34.dp),
|
||||
horizontalAlignment = Alignment.CenterHorizontally,
|
||||
verticalArrangement = Arrangement.spacedBy(5.dp),
|
||||
) {
|
||||
@@ -200,7 +358,7 @@ fun SunsetPage(sun: Sunset, now: Instant) {
|
||||
drawPath(path, Color(0xFF2D2440))
|
||||
}
|
||||
Clock(now, Color.White)
|
||||
Column(Modifier.fillMaxSize().padding(top = 32.dp), horizontalAlignment = Alignment.CenterHorizontally) {
|
||||
Column(Modifier.fillMaxSize().padding(top = 36.dp), horizontalAlignment = Alignment.CenterHorizontally) {
|
||||
T(if (sun.isToday) "오늘 노을" else "내일 노을", 13.sp, color = Color.White.copy(alpha = 0.9f))
|
||||
T(sun.score.toString(), 52.sp, Tok.bagel, Color.White)
|
||||
T(sun.grade, 12.sp, color = Color.White,
|
||||
@@ -220,7 +378,7 @@ fun SunsetPage(sun: Sunset, now: Instant) {
|
||||
fun HoursPage(s: Summary, now: Instant) {
|
||||
Box(Modifier.fillMaxSize().background(bgSky)) {
|
||||
Clock(now, Tok.ink)
|
||||
Column(Modifier.fillMaxSize().padding(top = 40.dp), horizontalAlignment = Alignment.CenterHorizontally) {
|
||||
Column(Modifier.fillMaxSize().padding(top = 42.dp), horizontalAlignment = Alignment.CenterHorizontally) {
|
||||
T("오늘 남은 시간", 14.sp, color = Tok.ink)
|
||||
Spacer(Modifier.height(10.dp))
|
||||
Row(horizontalArrangement = Arrangement.spacedBy(4.dp)) {
|
||||
|
||||
@@ -34,6 +34,16 @@ fun skyBrush(mode: String): Brush = when (mode) {
|
||||
else -> v(0f to 0xFF9FD3FF, 0.55f to 0xFFCFE9FF, 1f to 0xFFF1F8FF)
|
||||
}
|
||||
|
||||
/** 비·눈 오는 날 하늘. 밤에는 어두운 회청색 */
|
||||
fun precipBrush(kind: String, mode: String): Brush = when {
|
||||
mode == "night" -> v(0f to 0xFF1C2238, 0.6f to 0xFF2E3650, 1f to 0xFF434B66)
|
||||
kind == "snow" -> v(0f to 0xFFB8C4D6, 0.55f to 0xFFDFE6F0, 1f to 0xFFF4F7FB)
|
||||
else -> v(0f to 0xFF7F93AD, 0.55f to 0xFFA9B7C9, 1f to 0xFFD5DDE8)
|
||||
}
|
||||
|
||||
/** 하늘 위 글자가 흰색이어야 하는 시간대 */
|
||||
fun isDark(mode: String) = mode == "evening" || mode == "night"
|
||||
|
||||
// 카드·장 배경 (.b-bg-*)
|
||||
val bgButter = v(0f to 0xFFFFE7A0, 1f to 0xFFFFF6D8)
|
||||
val bgMint = v(0f to 0xFFBFECD6, 1f to 0xFFEFFAF4)
|
||||
|
||||
@@ -37,14 +37,20 @@ def stars():
|
||||
dots = "".join(f'<Ellipse x="{int(W*x)}" y="{int(W*y)}" width="5" height="5"><Fill color="#FFFFFFFF"/></Ellipse>' for x, y in STARS)
|
||||
return f'<PartDraw x="0" y="0" width="{W}" height="{W}">{AMB0}{dots}</PartDraw>'
|
||||
|
||||
def cloud(x, y, w, h, dist, period, color="#FFFFFFFF"):
|
||||
# 화면이 켜져 있는 동안만 period 초마다 부드럽게 한 번 왕복 (period 는 60 의 약수여야 분이 바뀔 때 튀지 않는다). 저전력 화면에서는 숨긴다
|
||||
return f'''<PartDraw x="{x}" y="{y - h}" width="{w}" height="{h * 2}">{AMB0}
|
||||
def cloud(y, w, h, period, phase, color="#FFFFFFFF"):
|
||||
# 왼쪽 밖에서 들어와 오른쪽 밖으로 빠지고 다시 왼쪽에서 나온다 (끝없이 흐르는 하늘). period 초에 한 번 가로지른다.
|
||||
# period 는 60 의 약수여야 분이 바뀔 때 튀지 않는다. 저전력 화면에서는 숨긴다
|
||||
return f'''<PartDraw x="{-w}" y="{y - h}" width="{w}" height="{h * 2}">{AMB0}
|
||||
<Ellipse x="{int(w * 0.2)}" y="0" width="{int(h * 1.6)}" height="{int(h * 1.6)}"><Fill color="{color}"/></Ellipse>
|
||||
<RoundRectangle x="0" y="{h}" width="{w}" height="{h}" cornerRadiusX="{h // 2}" cornerRadiusY="{h // 2}"><Fill color="{color}"/></RoundRectangle>
|
||||
<Transform target="x" value="{x} + {dist} * (0.5 - 0.5 * cos(rad(360 * fract([SECOND_MILLISECOND] / {period}))))"/>
|
||||
<Transform target="x" value="{W + w} * fract([SECOND_MILLISECOND] / {period} + {phase}) - {w}"/>
|
||||
</PartDraw>'''
|
||||
|
||||
# 구름 줄: 높이, 크기, 가로지르는 초, 시작 위상. 위상을 엇갈려 한쪽에서 빠질 때 다른 줄에서 새 구름이 들어온다
|
||||
# 시간·날짜 아래로만 지나가게 (흰 글씨 위로 흰 구름이 지나면 안 보인다).
|
||||
# 스킨은 시스템이 초당 10장 안팎으로만 그려서, 한 장에 1~2px 만 움직이도록 천천히 (빠른 하늘은 앱 첫 장에서 60장으로)
|
||||
CLOUDS = [(160, 86, 30, 60, 0.0), (160, 64, 22, 60, 0.5), (345, 100, 32, 30, 0.45), (262, 64, 22, 30, 0.8)]
|
||||
|
||||
def orb_fill(colors):
|
||||
blush = "" if colors == MOON else "".join(
|
||||
f'<Ellipse x="{int(ORB * x - ORB * .08)}" y="{int(ORB * .62)}" width="{int(ORB * .16)}" height="{int(ORB * .09)}"><Fill color="#73FF7A8A"/></Ellipse>' for x in (0.2, 0.8))
|
||||
@@ -74,7 +80,7 @@ def mode_block(colors, pos, ink, night=False):
|
||||
if night:
|
||||
parts.append(stars())
|
||||
cc = "#FFC9CDF0" if night else "#FFFFFFFF"
|
||||
parts += [cloud(40, 160, 86, 30, 20, 10, cc), cloud(270, 345, 100, 32, -24, 12, cc), clock(ink), date_line(ink)]
|
||||
parts += [cloud(*c, color=cc) for c in CLOUDS] + [clock(ink), date_line(ink)]
|
||||
return "\n ".join(parts)
|
||||
|
||||
def text(x, y, w, h, family, size, color, expr, amb=False):
|
||||
|
||||
@@ -16,15 +16,25 @@
|
||||
<PartDraw x="0" y="0" width="450" height="450"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Rectangle x="0" y="0" width="450" height="450"><Fill color="#FFFFFFFF"><LinearGradient startX="0" startY="0" endX="0" endY="450" colors="#FFFFD9B8 #FFFFE9D4 #FFDFF0FF" positions="0 0.4 1"/></Fill></Rectangle>
|
||||
</PartDraw>
|
||||
<PartDraw x="40" y="130" width="86" height="60"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<PartDraw x="-86" y="130" width="86" height="60"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="17" y="0" width="48" height="48"><Fill color="#FFFFFFFF"/></Ellipse>
|
||||
<RoundRectangle x="0" y="30" width="86" height="30" cornerRadiusX="15" cornerRadiusY="15"><Fill color="#FFFFFFFF"/></RoundRectangle>
|
||||
<Transform target="x" value="40 + 20 * (0.5 - 0.5 * cos(rad(360 * fract([SECOND_MILLISECOND] / 10))))"/>
|
||||
<Transform target="x" value="536 * fract([SECOND_MILLISECOND] / 60 + 0.0) - 86"/>
|
||||
</PartDraw>
|
||||
<PartDraw x="270" y="313" width="100" height="64"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<PartDraw x="-64" y="138" width="64" height="44"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="12" y="0" width="35" height="35"><Fill color="#FFFFFFFF"/></Ellipse>
|
||||
<RoundRectangle x="0" y="22" width="64" height="22" cornerRadiusX="11" cornerRadiusY="11"><Fill color="#FFFFFFFF"/></RoundRectangle>
|
||||
<Transform target="x" value="514 * fract([SECOND_MILLISECOND] / 60 + 0.5) - 64"/>
|
||||
</PartDraw>
|
||||
<PartDraw x="-100" y="313" width="100" height="64"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="20" y="0" width="51" height="51"><Fill color="#FFFFFFFF"/></Ellipse>
|
||||
<RoundRectangle x="0" y="32" width="100" height="32" cornerRadiusX="16" cornerRadiusY="16"><Fill color="#FFFFFFFF"/></RoundRectangle>
|
||||
<Transform target="x" value="270 + -24 * (0.5 - 0.5 * cos(rad(360 * fract([SECOND_MILLISECOND] / 12))))"/>
|
||||
<Transform target="x" value="550 * fract([SECOND_MILLISECOND] / 30 + 0.45) - 100"/>
|
||||
</PartDraw>
|
||||
<PartDraw x="-64" y="240" width="64" height="44"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="12" y="0" width="35" height="35"><Fill color="#FFFFFFFF"/></Ellipse>
|
||||
<RoundRectangle x="0" y="22" width="64" height="22" cornerRadiusX="11" cornerRadiusY="11"><Fill color="#FFFFFFFF"/></RoundRectangle>
|
||||
<Transform target="x" value="514 * fract([SECOND_MILLISECOND] / 30 + 0.8) - 64"/>
|
||||
</PartDraw>
|
||||
<DigitalClock x="0" y="18" width="450" height="84">
|
||||
<TimeText format="h:mm" hourFormat="SYNC_TO_DEVICE" align="CENTER" x="0" y="0" width="450" height="84" alpha="255"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
@@ -39,15 +49,25 @@
|
||||
<PartDraw x="0" y="0" width="450" height="450"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Rectangle x="0" y="0" width="450" height="450"><Fill color="#FFFFFFFF"><LinearGradient startX="0" startY="0" endX="0" endY="450" colors="#FF9FD3FF #FFCFE9FF #FFF1F8FF" positions="0 0.55 1"/></Fill></Rectangle>
|
||||
</PartDraw>
|
||||
<PartDraw x="40" y="130" width="86" height="60"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<PartDraw x="-86" y="130" width="86" height="60"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="17" y="0" width="48" height="48"><Fill color="#FFFFFFFF"/></Ellipse>
|
||||
<RoundRectangle x="0" y="30" width="86" height="30" cornerRadiusX="15" cornerRadiusY="15"><Fill color="#FFFFFFFF"/></RoundRectangle>
|
||||
<Transform target="x" value="40 + 20 * (0.5 - 0.5 * cos(rad(360 * fract([SECOND_MILLISECOND] / 10))))"/>
|
||||
<Transform target="x" value="536 * fract([SECOND_MILLISECOND] / 60 + 0.0) - 86"/>
|
||||
</PartDraw>
|
||||
<PartDraw x="270" y="313" width="100" height="64"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<PartDraw x="-64" y="138" width="64" height="44"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="12" y="0" width="35" height="35"><Fill color="#FFFFFFFF"/></Ellipse>
|
||||
<RoundRectangle x="0" y="22" width="64" height="22" cornerRadiusX="11" cornerRadiusY="11"><Fill color="#FFFFFFFF"/></RoundRectangle>
|
||||
<Transform target="x" value="514 * fract([SECOND_MILLISECOND] / 60 + 0.5) - 64"/>
|
||||
</PartDraw>
|
||||
<PartDraw x="-100" y="313" width="100" height="64"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="20" y="0" width="51" height="51"><Fill color="#FFFFFFFF"/></Ellipse>
|
||||
<RoundRectangle x="0" y="32" width="100" height="32" cornerRadiusX="16" cornerRadiusY="16"><Fill color="#FFFFFFFF"/></RoundRectangle>
|
||||
<Transform target="x" value="270 + -24 * (0.5 - 0.5 * cos(rad(360 * fract([SECOND_MILLISECOND] / 12))))"/>
|
||||
<Transform target="x" value="550 * fract([SECOND_MILLISECOND] / 30 + 0.45) - 100"/>
|
||||
</PartDraw>
|
||||
<PartDraw x="-64" y="240" width="64" height="44"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="12" y="0" width="35" height="35"><Fill color="#FFFFFFFF"/></Ellipse>
|
||||
<RoundRectangle x="0" y="22" width="64" height="22" cornerRadiusX="11" cornerRadiusY="11"><Fill color="#FFFFFFFF"/></RoundRectangle>
|
||||
<Transform target="x" value="514 * fract([SECOND_MILLISECOND] / 30 + 0.8) - 64"/>
|
||||
</PartDraw>
|
||||
<DigitalClock x="0" y="18" width="450" height="84">
|
||||
<TimeText format="h:mm" hourFormat="SYNC_TO_DEVICE" align="CENTER" x="0" y="0" width="450" height="84" alpha="255"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
@@ -62,15 +82,25 @@
|
||||
<PartDraw x="0" y="0" width="450" height="450"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Rectangle x="0" y="0" width="450" height="450"><Fill color="#FFFFFFFF"><LinearGradient startX="0" startY="0" endX="0" endY="450" colors="#FF8E7CF0 #FFF28AA0 #FFFFC38A" positions="0 0.48 1"/></Fill></Rectangle>
|
||||
</PartDraw>
|
||||
<PartDraw x="40" y="130" width="86" height="60"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<PartDraw x="-86" y="130" width="86" height="60"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="17" y="0" width="48" height="48"><Fill color="#FFFFFFFF"/></Ellipse>
|
||||
<RoundRectangle x="0" y="30" width="86" height="30" cornerRadiusX="15" cornerRadiusY="15"><Fill color="#FFFFFFFF"/></RoundRectangle>
|
||||
<Transform target="x" value="40 + 20 * (0.5 - 0.5 * cos(rad(360 * fract([SECOND_MILLISECOND] / 10))))"/>
|
||||
<Transform target="x" value="536 * fract([SECOND_MILLISECOND] / 60 + 0.0) - 86"/>
|
||||
</PartDraw>
|
||||
<PartDraw x="270" y="313" width="100" height="64"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<PartDraw x="-64" y="138" width="64" height="44"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="12" y="0" width="35" height="35"><Fill color="#FFFFFFFF"/></Ellipse>
|
||||
<RoundRectangle x="0" y="22" width="64" height="22" cornerRadiusX="11" cornerRadiusY="11"><Fill color="#FFFFFFFF"/></RoundRectangle>
|
||||
<Transform target="x" value="514 * fract([SECOND_MILLISECOND] / 60 + 0.5) - 64"/>
|
||||
</PartDraw>
|
||||
<PartDraw x="-100" y="313" width="100" height="64"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="20" y="0" width="51" height="51"><Fill color="#FFFFFFFF"/></Ellipse>
|
||||
<RoundRectangle x="0" y="32" width="100" height="32" cornerRadiusX="16" cornerRadiusY="16"><Fill color="#FFFFFFFF"/></RoundRectangle>
|
||||
<Transform target="x" value="270 + -24 * (0.5 - 0.5 * cos(rad(360 * fract([SECOND_MILLISECOND] / 12))))"/>
|
||||
<Transform target="x" value="550 * fract([SECOND_MILLISECOND] / 30 + 0.45) - 100"/>
|
||||
</PartDraw>
|
||||
<PartDraw x="-64" y="240" width="64" height="44"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="12" y="0" width="35" height="35"><Fill color="#FFFFFFFF"/></Ellipse>
|
||||
<RoundRectangle x="0" y="22" width="64" height="22" cornerRadiusX="11" cornerRadiusY="11"><Fill color="#FFFFFFFF"/></RoundRectangle>
|
||||
<Transform target="x" value="514 * fract([SECOND_MILLISECOND] / 30 + 0.8) - 64"/>
|
||||
</PartDraw>
|
||||
<DigitalClock x="0" y="18" width="450" height="84">
|
||||
<TimeText format="h:mm" hourFormat="SYNC_TO_DEVICE" align="CENTER" x="0" y="0" width="450" height="84" alpha="255"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
@@ -86,15 +116,25 @@
|
||||
<Rectangle x="0" y="0" width="450" height="450"><Fill color="#FFFFFFFF"><LinearGradient startX="0" startY="0" endX="0" endY="450" colors="#FF141B3D #FF27306A #FF3D3F86" positions="0 0.6 1"/></Fill></Rectangle>
|
||||
</PartDraw>
|
||||
<PartDraw x="0" y="0" width="450" height="450"><Variant mode="AMBIENT" target="alpha" value="0"/><Ellipse x="99" y="90" width="5" height="5"><Fill color="#FFFFFFFF"/></Ellipse><Ellipse x="315" y="63" width="5" height="5"><Fill color="#FFFFFFFF"/></Ellipse><Ellipse x="378" y="180" width="5" height="5"><Fill color="#FFFFFFFF"/></Ellipse><Ellipse x="63" y="234" width="5" height="5"><Fill color="#FFFFFFFF"/></Ellipse><Ellipse x="216" y="45" width="5" height="5"><Fill color="#FFFFFFFF"/></Ellipse><Ellipse x="135" y="351" width="5" height="5"><Fill color="#FFFFFFFF"/></Ellipse><Ellipse x="342" y="315" width="5" height="5"><Fill color="#FFFFFFFF"/></Ellipse></PartDraw>
|
||||
<PartDraw x="40" y="130" width="86" height="60"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<PartDraw x="-86" y="130" width="86" height="60"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="17" y="0" width="48" height="48"><Fill color="#FFC9CDF0"/></Ellipse>
|
||||
<RoundRectangle x="0" y="30" width="86" height="30" cornerRadiusX="15" cornerRadiusY="15"><Fill color="#FFC9CDF0"/></RoundRectangle>
|
||||
<Transform target="x" value="40 + 20 * (0.5 - 0.5 * cos(rad(360 * fract([SECOND_MILLISECOND] / 10))))"/>
|
||||
<Transform target="x" value="536 * fract([SECOND_MILLISECOND] / 60 + 0.0) - 86"/>
|
||||
</PartDraw>
|
||||
<PartDraw x="270" y="313" width="100" height="64"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<PartDraw x="-64" y="138" width="64" height="44"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="12" y="0" width="35" height="35"><Fill color="#FFC9CDF0"/></Ellipse>
|
||||
<RoundRectangle x="0" y="22" width="64" height="22" cornerRadiusX="11" cornerRadiusY="11"><Fill color="#FFC9CDF0"/></RoundRectangle>
|
||||
<Transform target="x" value="514 * fract([SECOND_MILLISECOND] / 60 + 0.5) - 64"/>
|
||||
</PartDraw>
|
||||
<PartDraw x="-100" y="313" width="100" height="64"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="20" y="0" width="51" height="51"><Fill color="#FFC9CDF0"/></Ellipse>
|
||||
<RoundRectangle x="0" y="32" width="100" height="32" cornerRadiusX="16" cornerRadiusY="16"><Fill color="#FFC9CDF0"/></RoundRectangle>
|
||||
<Transform target="x" value="270 + -24 * (0.5 - 0.5 * cos(rad(360 * fract([SECOND_MILLISECOND] / 12))))"/>
|
||||
<Transform target="x" value="550 * fract([SECOND_MILLISECOND] / 30 + 0.45) - 100"/>
|
||||
</PartDraw>
|
||||
<PartDraw x="-64" y="240" width="64" height="44"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="12" y="0" width="35" height="35"><Fill color="#FFC9CDF0"/></Ellipse>
|
||||
<RoundRectangle x="0" y="22" width="64" height="22" cornerRadiusX="11" cornerRadiusY="11"><Fill color="#FFC9CDF0"/></RoundRectangle>
|
||||
<Transform target="x" value="514 * fract([SECOND_MILLISECOND] / 30 + 0.8) - 64"/>
|
||||
</PartDraw>
|
||||
<DigitalClock x="0" y="18" width="450" height="84">
|
||||
<TimeText format="h:mm" hourFormat="SYNC_TO_DEVICE" align="CENTER" x="0" y="0" width="450" height="84" alpha="255"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
|
||||
Reference in new issue
Block a user