feat: 날씨각 워치 스킨(WFF) — 1~7위 링, 구름·비·눈 애니메이션, 귀여운 해
- watchface 모듈: 큰 원 1위 + 둘레 링 2~7위, 시간대 하늘, 구름 흐름, 비·눈 오버레이 - 앱: 순위별 컴플리케이션(1~7위), 비·눈 컴플리케이션, 히어로 장 비·눈·해 광선 - 백엔드: /v1/watch/summary top 을 7개로 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
No files matched your search
@@ -20,6 +20,8 @@ from services.weather_service import WeatherService
|
||||
router = APIRouter(prefix="/v1/watch", tags=["watch"])
|
||||
|
||||
MAX_PICKS = 3
|
||||
# 워치 스킨이 큰 원(1위) + 둘레 링 6개(2~7위)를 채운다
|
||||
TOP_N = 7
|
||||
|
||||
|
||||
def _best(score: SkyScore, kind: str) -> datetime:
|
||||
@@ -37,7 +39,7 @@ def timeline(now: datetime, sunset: Optional[SkyScore], is_today: bool) -> list[
|
||||
return items + [WatchTimeline(start_at=max(start, now), kind="sunset"), WatchTimeline(start_at=end, kind="gak")]
|
||||
|
||||
|
||||
@router.get("/summary", response_model=Res_WatchSummary, response_model_exclude_none=True, summary="워치 한 번에: 지금 날씨, 각 1~3위·내 각, 노을, 남은 3시간 칸, 컴플리케이션 시간표")
|
||||
@router.get("/summary", response_model=Res_WatchSummary, response_model_exclude_none=True, summary="워치 한 번에: 지금 날씨, 각 1~7위·내 각, 노을, 남은 3시간 칸, 컴플리케이션 시간표")
|
||||
async def get_watch_summary(
|
||||
region: str = Query(..., description="구 행정코드"),
|
||||
pick: Optional[str] = Query(None, description="내 각 코드, 쉼표로 최대 3개 (예: running,laundry)"),
|
||||
@@ -78,7 +80,7 @@ async def get_watch_summary(
|
||||
res.warning = now_w.warnings[0].text if now_w.warnings else None
|
||||
|
||||
if board is not None:
|
||||
res.top = [_top(i) for i in board.items[:3]]
|
||||
res.top = [_top(i) for i in board.items[:TOP_N]]
|
||||
codes = [c.strip() for c in (pick or "").split(",") if c.strip()][:MAX_PICKS]
|
||||
by_code = {i.definition.code: i for i in board.items}
|
||||
res.picks = [_top(by_code[c]) for c in codes if c in by_code]
|
||||
|
||||
@@ -48,7 +48,7 @@ async def test_watch_summary_bundles_now_top_picks_sunset(offline):
|
||||
assert body["region_code"] == REGION and body["mode"] in ("morning", "day", "evening", "night")
|
||||
assert body["refresh_at"] > body["issued_at"]
|
||||
assert body["now"]["rain_2h"] is False and body["now"]["temp_c"] == 20.0
|
||||
assert len(body["top"]) == 3
|
||||
assert [t["rank"] for t in body["top"]] == list(range(1, 8))
|
||||
assert [p["code"] for p in body["picks"]] == ["laundry", "running"]
|
||||
assert body["sunset"]["best_at"] > body["sunset"]["sunset_at"]
|
||||
assert all(s["at"] > body["issued_at"] for s in body["slots"])
|
||||
|
||||
@@ -34,6 +34,112 @@
|
||||
<meta-data android:name="android.support.wearable.complications.UPDATE_PERIOD_SECONDS" android:value="1800" />
|
||||
</service>
|
||||
|
||||
<!-- 워치 스킨 칸용 순위별 공급원 -->
|
||||
<service
|
||||
android:name=".Rank1ComplicationService"
|
||||
android:exported="true"
|
||||
android:icon="@drawable/ic_gak"
|
||||
android:label="날씨각 1위"
|
||||
android:permission="com.google.android.wearable.permission.BIND_COMPLICATION_PROVIDER">
|
||||
<intent-filter>
|
||||
<action android:name="android.support.wearable.complications.ACTION_COMPLICATION_UPDATE_REQUEST" />
|
||||
</intent-filter>
|
||||
<meta-data android:name="android.support.wearable.complications.SUPPORTED_TYPES" android:value="RANGED_VALUE,SHORT_TEXT" />
|
||||
<meta-data android:name="android.support.wearable.complications.UPDATE_PERIOD_SECONDS" android:value="1800" />
|
||||
</service>
|
||||
|
||||
<service
|
||||
android:name=".Rank2ComplicationService"
|
||||
android:exported="true"
|
||||
android:icon="@drawable/ic_gak"
|
||||
android:label="날씨각 2위"
|
||||
android:permission="com.google.android.wearable.permission.BIND_COMPLICATION_PROVIDER">
|
||||
<intent-filter>
|
||||
<action android:name="android.support.wearable.complications.ACTION_COMPLICATION_UPDATE_REQUEST" />
|
||||
</intent-filter>
|
||||
<meta-data android:name="android.support.wearable.complications.SUPPORTED_TYPES" android:value="RANGED_VALUE,SHORT_TEXT" />
|
||||
<meta-data android:name="android.support.wearable.complications.UPDATE_PERIOD_SECONDS" android:value="1800" />
|
||||
</service>
|
||||
|
||||
<service
|
||||
android:name=".Rank3ComplicationService"
|
||||
android:exported="true"
|
||||
android:icon="@drawable/ic_gak"
|
||||
android:label="날씨각 3위"
|
||||
android:permission="com.google.android.wearable.permission.BIND_COMPLICATION_PROVIDER">
|
||||
<intent-filter>
|
||||
<action android:name="android.support.wearable.complications.ACTION_COMPLICATION_UPDATE_REQUEST" />
|
||||
</intent-filter>
|
||||
<meta-data android:name="android.support.wearable.complications.SUPPORTED_TYPES" android:value="RANGED_VALUE,SHORT_TEXT" />
|
||||
<meta-data android:name="android.support.wearable.complications.UPDATE_PERIOD_SECONDS" android:value="1800" />
|
||||
</service>
|
||||
|
||||
<service
|
||||
android:name=".Rank4ComplicationService"
|
||||
android:exported="true"
|
||||
android:icon="@drawable/ic_gak"
|
||||
android:label="날씨각 4위"
|
||||
android:permission="com.google.android.wearable.permission.BIND_COMPLICATION_PROVIDER">
|
||||
<intent-filter>
|
||||
<action android:name="android.support.wearable.complications.ACTION_COMPLICATION_UPDATE_REQUEST" />
|
||||
</intent-filter>
|
||||
<meta-data android:name="android.support.wearable.complications.SUPPORTED_TYPES" android:value="RANGED_VALUE,SHORT_TEXT" />
|
||||
<meta-data android:name="android.support.wearable.complications.UPDATE_PERIOD_SECONDS" android:value="1800" />
|
||||
</service>
|
||||
|
||||
<service
|
||||
android:name=".Rank5ComplicationService"
|
||||
android:exported="true"
|
||||
android:icon="@drawable/ic_gak"
|
||||
android:label="날씨각 5위"
|
||||
android:permission="com.google.android.wearable.permission.BIND_COMPLICATION_PROVIDER">
|
||||
<intent-filter>
|
||||
<action android:name="android.support.wearable.complications.ACTION_COMPLICATION_UPDATE_REQUEST" />
|
||||
</intent-filter>
|
||||
<meta-data android:name="android.support.wearable.complications.SUPPORTED_TYPES" android:value="RANGED_VALUE,SHORT_TEXT" />
|
||||
<meta-data android:name="android.support.wearable.complications.UPDATE_PERIOD_SECONDS" android:value="1800" />
|
||||
</service>
|
||||
|
||||
<service
|
||||
android:name=".Rank6ComplicationService"
|
||||
android:exported="true"
|
||||
android:icon="@drawable/ic_gak"
|
||||
android:label="날씨각 6위"
|
||||
android:permission="com.google.android.wearable.permission.BIND_COMPLICATION_PROVIDER">
|
||||
<intent-filter>
|
||||
<action android:name="android.support.wearable.complications.ACTION_COMPLICATION_UPDATE_REQUEST" />
|
||||
</intent-filter>
|
||||
<meta-data android:name="android.support.wearable.complications.SUPPORTED_TYPES" android:value="RANGED_VALUE,SHORT_TEXT" />
|
||||
<meta-data android:name="android.support.wearable.complications.UPDATE_PERIOD_SECONDS" android:value="1800" />
|
||||
</service>
|
||||
|
||||
<service
|
||||
android:name=".Rank7ComplicationService"
|
||||
android:exported="true"
|
||||
android:icon="@drawable/ic_gak"
|
||||
android:label="날씨각 7위"
|
||||
android:permission="com.google.android.wearable.permission.BIND_COMPLICATION_PROVIDER">
|
||||
<intent-filter>
|
||||
<action android:name="android.support.wearable.complications.ACTION_COMPLICATION_UPDATE_REQUEST" />
|
||||
</intent-filter>
|
||||
<meta-data android:name="android.support.wearable.complications.SUPPORTED_TYPES" android:value="RANGED_VALUE,SHORT_TEXT" />
|
||||
<meta-data android:name="android.support.wearable.complications.UPDATE_PERIOD_SECONDS" android:value="1800" />
|
||||
</service>
|
||||
|
||||
<!-- 워치 스킨 숨은 칸용: 비·눈 여부 -->
|
||||
<service
|
||||
android:name=".RainComplicationService"
|
||||
android:exported="true"
|
||||
android:icon="@drawable/ic_gak"
|
||||
android:label="날씨각 비·눈"
|
||||
android:permission="com.google.android.wearable.permission.BIND_COMPLICATION_PROVIDER">
|
||||
<intent-filter>
|
||||
<action android:name="android.support.wearable.complications.ACTION_COMPLICATION_UPDATE_REQUEST" />
|
||||
</intent-filter>
|
||||
<meta-data android:name="android.support.wearable.complications.SUPPORTED_TYPES" android:value="SHORT_TEXT" />
|
||||
<meta-data android:name="android.support.wearable.complications.UPDATE_PERIOD_SECONDS" android:value="1800" />
|
||||
</service>
|
||||
|
||||
<service
|
||||
android:name=".GakTileService"
|
||||
android:exported="true"
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
package kr.o2o.nalssigak
|
||||
|
||||
import android.app.PendingIntent
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.graphics.drawable.Icon
|
||||
import androidx.wear.watchface.complications.data.ComplicationData
|
||||
import androidx.wear.watchface.complications.data.ComplicationType
|
||||
@@ -23,9 +26,9 @@ class GakComplicationService : SuspendingTimelineComplicationDataSourceService()
|
||||
override suspend fun onComplicationRequest(request: ComplicationRequest): ComplicationDataTimeline? {
|
||||
val s = withContext(Dispatchers.IO) { SummaryRepo.load(this@GakComplicationService) } ?: return null
|
||||
val type = request.complicationType
|
||||
val sunset = s.sunset?.let { data(type, hhmm(it.bestAt), "노을", it.score, "sunset") }
|
||||
val sunset = s.sunset?.let { gakData(this, type, hhmm(it.bestAt), "노을", it.score, "sunset") }
|
||||
// 각 점수를 못 받았으면 노을이라도
|
||||
val default = s.myGak?.let { data(type, it.score.toString(), it.name.removeSuffix("각"), it.score, it.icon) } ?: sunset ?: return null
|
||||
val default = s.myGak?.let { gakData(this, type, it.score.toString(), it.name.removeSuffix("각"), it.score, it.icon) } ?: sunset ?: return null
|
||||
val entries = if (sunset == null) emptyList() else s.timeline.withIndex().filter { it.value.kind == "sunset" }.map { (i, p) ->
|
||||
val end = s.timeline.getOrNull(i + 1)?.startAt ?: p.startAt.plus(Duration.ofHours(3))
|
||||
TimelineEntry(TimeInterval(p.startAt, end), sunset)
|
||||
@@ -33,18 +36,19 @@ class GakComplicationService : SuspendingTimelineComplicationDataSourceService()
|
||||
return ComplicationDataTimeline(default, entries)
|
||||
}
|
||||
|
||||
override fun getPreviewData(type: ComplicationType): ComplicationData = data(type, "82", "야장", 82, "yajang")
|
||||
override fun getPreviewData(type: ComplicationType): ComplicationData = gakData(this, type, "82", "야장", 82, "yajang")
|
||||
}
|
||||
|
||||
/** 3D 아이콘은 작은 이미지로 함께 보낸다. 그릴지 말지는 시계 화면이 정한다. */
|
||||
private fun data(type: ComplicationType, text: String, title: String, score: Int, icon: String): ComplicationData {
|
||||
val img = SmallImage.Builder(Icon.createWithResource(this, iconRes(icon)), SmallImageType.ICON).build()
|
||||
val t = PlainComplicationText.Builder(text).build()
|
||||
val ti = PlainComplicationText.Builder(title).build()
|
||||
val desc = PlainComplicationText.Builder("$title $text").build()
|
||||
return if (type == ComplicationType.RANGED_VALUE) {
|
||||
RangedValueComplicationData.Builder(score.toFloat(), 0f, 100f, desc).setText(t).setTitle(ti).setSmallImage(img).build()
|
||||
} else {
|
||||
ShortTextComplicationData.Builder(t, desc).setTitle(ti).setSmallImage(img).build()
|
||||
}
|
||||
/** 3D 아이콘은 작은 이미지로 함께 보낸다. 그릴지 말지는 시계 화면이 정한다. 누르면 날씨각 앱이 열린다. */
|
||||
fun gakData(context: Context, type: ComplicationType, text: String, title: String, score: Int, icon: String): ComplicationData {
|
||||
val img = SmallImage.Builder(Icon.createWithResource(context, iconRes(icon)), SmallImageType.ICON).build()
|
||||
val t = PlainComplicationText.Builder(text).build()
|
||||
val ti = PlainComplicationText.Builder(title).build()
|
||||
val desc = PlainComplicationText.Builder("$title $text").build()
|
||||
val open = PendingIntent.getActivity(context, 0, Intent(context, MainActivity::class.java), PendingIntent.FLAG_IMMUTABLE)
|
||||
return if (type == ComplicationType.RANGED_VALUE) {
|
||||
RangedValueComplicationData.Builder(score.toFloat(), 0f, 100f, desc).setText(t).setTitle(ti).setSmallImage(img).setTapAction(open).build()
|
||||
} else {
|
||||
ShortTextComplicationData.Builder(t, desc).setTitle(ti).setSmallImage(img).setTapAction(open).build()
|
||||
}
|
||||
}
|
||||
@@ -74,7 +74,7 @@ private fun App(s: Summary?, loading: Boolean, onRetry: () -> Unit) {
|
||||
VerticalPager(state = state, modifier = Modifier.fillMaxSize()) { i ->
|
||||
when (pages[i]) {
|
||||
Page.HERO -> HeroPage(s, now)
|
||||
Page.TOP -> GakListPage("오늘의 각", s.top, bgButter, medals = true, 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)
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
package kr.o2o.nalssigak
|
||||
|
||||
import androidx.wear.watchface.complications.data.ComplicationData
|
||||
import androidx.wear.watchface.complications.data.ComplicationType
|
||||
import androidx.wear.watchface.complications.data.PlainComplicationText
|
||||
import androidx.wear.watchface.complications.data.ShortTextComplicationData
|
||||
import androidx.wear.watchface.complications.datasource.ComplicationRequest
|
||||
import androidx.wear.watchface.complications.datasource.SuspendingComplicationDataSourceService
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.withContext
|
||||
|
||||
/** 워치 스킨의 숨은 칸용: 지금 비·눈 여부("rain" | "snow" | "none"). 스킨이 이 값을 보고 빗줄기·눈송이를 그린다. */
|
||||
class RainComplicationService : SuspendingComplicationDataSourceService() {
|
||||
|
||||
override suspend fun onComplicationRequest(request: ComplicationRequest): ComplicationData? {
|
||||
val s = withContext(Dispatchers.IO) { SummaryRepo.load(this@RainComplicationService) } ?: return null
|
||||
return data(s.precip ?: "none")
|
||||
}
|
||||
|
||||
override fun getPreviewData(type: ComplicationType): ComplicationData = data("none")
|
||||
|
||||
private fun data(kind: String) = ShortTextComplicationData.Builder(
|
||||
PlainComplicationText.Builder(kind).build(),
|
||||
PlainComplicationText.Builder(mapOf("rain" to "비", "snow" to "눈").getOrDefault(kind, "맑음")).build(),
|
||||
).build()
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package kr.o2o.nalssigak
|
||||
|
||||
import androidx.wear.watchface.complications.data.ComplicationData
|
||||
import androidx.wear.watchface.complications.data.ComplicationType
|
||||
import androidx.wear.watchface.complications.datasource.ComplicationRequest
|
||||
import androidx.wear.watchface.complications.datasource.SuspendingComplicationDataSourceService
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.withContext
|
||||
|
||||
/** 워치 스킨용 N위 각. 칸 하나에 공급원 하나라 순위마다 서비스를 하나씩 둔다 (큰 원 1위, 둘레 링 2~7위). */
|
||||
open class RankComplicationService(private val rank: Int) : SuspendingComplicationDataSourceService() {
|
||||
|
||||
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)
|
||||
}
|
||||
|
||||
override fun getPreviewData(type: ComplicationType): ComplicationData = gakData(this, type, "${90 - rank * 2}", "${rank}위", 90 - rank * 2, "sun_cloud")
|
||||
}
|
||||
|
||||
class Rank1ComplicationService : RankComplicationService(1)
|
||||
class Rank2ComplicationService : RankComplicationService(2)
|
||||
class Rank3ComplicationService : RankComplicationService(3)
|
||||
class Rank4ComplicationService : RankComplicationService(4)
|
||||
class Rank5ComplicationService : RankComplicationService(5)
|
||||
class Rank6ComplicationService : RankComplicationService(6)
|
||||
class Rank7ComplicationService : RankComplicationService(7)
|
||||
@@ -1,6 +1,7 @@
|
||||
package kr.o2o.nalssigak
|
||||
|
||||
import androidx.compose.animation.core.FastOutSlowInEasing
|
||||
import androidx.compose.animation.core.LinearEasing
|
||||
import androidx.compose.animation.core.RepeatMode
|
||||
import androidx.compose.animation.core.animateFloat
|
||||
import androidx.compose.animation.core.infiniteRepeatable
|
||||
@@ -27,6 +28,9 @@ import androidx.compose.foundation.layout.widthIn
|
||||
import androidx.compose.foundation.shape.CircleShape
|
||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.LaunchedEffect
|
||||
import androidx.compose.runtime.mutableFloatStateOf
|
||||
import androidx.compose.runtime.withFrameNanos
|
||||
import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.mutableStateOf
|
||||
import androidx.compose.runtime.remember
|
||||
@@ -104,27 +108,31 @@ private val STARS = listOf(0.22f to 0.20f, 0.70f to 0.14f, 0.84f to 0.40f, 0.14f
|
||||
|
||||
@Composable
|
||||
fun HeroPage(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(skyBrush(s.mode))) {
|
||||
BoxWithConstraints(Modifier.fillMaxSize().background(if (precip != null) precipBrush(precip, s.mode) else skyBrush(s.mode))) {
|
||||
val w = maxWidth
|
||||
if (night) Canvas(Modifier.fillMaxSize()) {
|
||||
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)) }
|
||||
}
|
||||
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 = 26.dp))
|
||||
|
||||
Cloud(night, 7000, 16f, Modifier.offset(w * 0.09f, w * 0.34f).size(w * 0.19f, w * 0.07f))
|
||||
Cloud(night, 9000, -20f, Modifier.offset(w * 0.6f, w * 0.74f).size(w * 0.22f, w * 0.075f))
|
||||
Orb(night, Modifier.align(Alignment.Center).offset(y = (-6).dp).size(w * 0.4f)) {
|
||||
T(top?.score?.toString() ?: "-", 36.sp, Tok.bagel, if (night) Color(0xFF2B2A5C) else Color.White)
|
||||
T(top?.name ?: "날씨각", 11.sp, color = if (night) Color(0xFF2B2A5C) else Color.White)
|
||||
val cloudColor = when { precip == "rain" -> Color(0xFFDCE2EB); night -> Color(0xFFC9CDF0); else -> Color.White }
|
||||
Cloud(cloudColor, 7000, 16f, Modifier.offset(w * 0.09f, w * 0.34f).size(w * 0.19f, w * 0.07f))
|
||||
Cloud(cloudColor, 9000, -20f, Modifier.offset(w * 0.6f, w * 0.74f).size(w * 0.22f, w * 0.075f))
|
||||
precip?.let { Precip(it, Modifier.fillMaxSize()) }
|
||||
if (!night) SunRays(Modifier.align(Alignment.Center).offset(y = (-6).dp).size(w * 0.5f))
|
||||
Orb(night, Modifier.align(Alignment.Center).offset(y = (-6).dp).size(w * 0.36f)) {
|
||||
T(top?.score?.toString() ?: "-", 32.sp, Tok.bagel, if (night) Color(0xFF2B2A5C) else Color.White)
|
||||
T(top?.name ?: "날씨각", 10.sp, color = if (night) Color(0xFF2B2A5C) else Color.White)
|
||||
}
|
||||
// 큰 원 둘레에 나머지 각 점수 링 (1위는 큰 원에 있으니 빼고)
|
||||
val rings = (s.top + s.picks).distinctBy { it.code }.filter { it.code != top?.code }.take(RING_ANGLES.size)
|
||||
// 큰 원 둘레에 2~7위 점수 링 (워치 스킨과 같은 배치)
|
||||
val rings = s.top.drop(1).take(RING_ANGLES.size)
|
||||
rings.forEachIndexed { i, g ->
|
||||
val rad = Math.toRadians(RING_ANGLES[i])
|
||||
val size = w * 0.15f
|
||||
@@ -132,7 +140,13 @@ fun HeroPage(s: Summary, now: Instant) {
|
||||
}
|
||||
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", when (s.rain2h) { true -> "곧 비"; false -> "비 없음"; null -> "-" }, dark)
|
||||
Stat("umbrella", when {
|
||||
precip == "snow" -> "눈 와요"
|
||||
s.nowIcon == "rain" -> "비 와요"
|
||||
s.rain2h == true -> "곧 비"
|
||||
s.rain2h == false -> "비 없음"
|
||||
else -> "-"
|
||||
}, dark)
|
||||
}
|
||||
s.warning?.let {
|
||||
T("⚠ $it", 10.sp, color = fg, modifier = Modifier.align(Alignment.BottomCenter).padding(bottom = w * 0.03f), maxLines = 1)
|
||||
@@ -166,6 +180,23 @@ private fun ScoreRing(g: Gak, dark: Boolean, modifier: Modifier) {
|
||||
}
|
||||
}
|
||||
|
||||
/** 구슬 둘레의 끝이 둥근 햇살 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) {
|
||||
@@ -181,6 +212,10 @@ private fun Orb(night: Boolean, modifier: Modifier, content: @Composable () -> U
|
||||
// 오른쪽 아래 그늘, 왼쪽 위 빛 (웹 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() } }
|
||||
@@ -188,8 +223,7 @@ private fun Orb(night: Boolean, modifier: Modifier, content: @Composable () -> U
|
||||
|
||||
/** 구름은 좌우로 천천히 오간다. distance 부호로 방향, ms 로 속도 */
|
||||
@Composable
|
||||
private fun Cloud(night: Boolean, ms: Int, distance: Float, modifier: Modifier) {
|
||||
val c = if (night) Color(0xFFC9CDF0) else Color.White
|
||||
private fun Cloud(c: Color, ms: Int, distance: Float, modifier: Modifier) {
|
||||
val t = rememberInfiniteTransition(label = "cloud")
|
||||
val p by t.animateFloat(0f, 1f, infiniteRepeatable(tween(ms, easing = FastOutSlowInEasing), RepeatMode.Reverse), label = "drift")
|
||||
Canvas(modifier.graphicsLayer { translationX = distance.dp.toPx() * p }) {
|
||||
@@ -199,6 +233,43 @@ private fun Cloud(night: Boolean, ms: Int, distance: Float, modifier: Modifier)
|
||||
}
|
||||
}
|
||||
|
||||
// 빗줄기·눈송이 하나: 가로 위치, 시작 위상, 한 번 떨어지는 데 걸리는 초, 크기 (모두 고정값이라 매번 같은 자리)
|
||||
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(
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
package kr.o2o.nalssigak
|
||||
|
||||
import android.Manifest
|
||||
import android.content.ComponentName
|
||||
import android.content.Context
|
||||
import android.content.pm.PackageManager
|
||||
import android.location.LocationManager
|
||||
import android.util.Log
|
||||
import androidx.wear.tiles.TileService
|
||||
import androidx.wear.watchface.complications.datasource.ComplicationDataSourceUpdateRequester
|
||||
import org.json.JSONArray
|
||||
import org.json.JSONObject
|
||||
import java.io.IOException
|
||||
@@ -26,6 +29,8 @@ data class Summary(
|
||||
/** morning | day | evening | night (서버 slot_of) */
|
||||
val mode: String,
|
||||
val tempC: Double?,
|
||||
/** 지금 3시간 칸 아이콘 (sun, rain, snow …) */
|
||||
val nowIcon: String?,
|
||||
val rainText: String?,
|
||||
val rain2h: Boolean?,
|
||||
val warning: String?,
|
||||
@@ -37,6 +42,13 @@ data class Summary(
|
||||
) {
|
||||
/** 컴플리케이션·타일에 올릴 각: 내 각 첫 번째, 없으면 오늘 1위 */
|
||||
val myGak: Gak? get() = picks.firstOrNull() ?: top.firstOrNull()
|
||||
|
||||
/** 비·눈 화면: "rain" | "snow" | null. 지금 칸이 눈이면 눈, 지금 칸이 비거나 2시간 안에 비 소식이면 비 */
|
||||
val precip: String? get() = when {
|
||||
nowIcon == "snow" -> "snow"
|
||||
nowIcon == "rain" || rain2h == true -> "rain"
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
|
||||
val KST: ZoneId = ZoneId.of("Asia/Seoul")
|
||||
@@ -63,6 +75,7 @@ fun parseSummary(json: String): Summary {
|
||||
refreshAt = time(o.getString("refresh_at")),
|
||||
mode = o.optString("mode", "day"),
|
||||
tempC = now?.dbl("temp_c"),
|
||||
nowIcon = now?.str("icon"),
|
||||
rainText = now?.str("text"),
|
||||
rain2h = now?.takeIf { it.has("rain_2h") }?.getBoolean("rain_2h"),
|
||||
warning = o.str("warning"),
|
||||
@@ -84,7 +97,13 @@ object SummaryRepo {
|
||||
private const val DEFAULT_REGION = "1111000000"
|
||||
|
||||
/** 캐시가 refresh_at 전이면 캐시, 아니면 새로 받는다. 받기 실패하면 지난 캐시라도. 네트워크를 쓰니 메인 스레드에서 부르지 않는다. */
|
||||
fun load(context: Context, force: Boolean = false): Summary? {
|
||||
fun load(context: Context, force: Boolean = false): Summary? = fetch(context, force)?.let { s ->
|
||||
// 디버그 빌드 확인용: shared_prefs/debug.xml 의 precip(rain|snow)로 비·눈 화면을 강제로 띄운다
|
||||
val forced = if (BuildConfig.DEBUG) context.getSharedPreferences("debug", Context.MODE_PRIVATE).getString("precip", null) else null
|
||||
if (forced == null) s else s.copy(nowIcon = forced, rain2h = forced == "rain")
|
||||
}
|
||||
|
||||
private fun fetch(context: Context, force: Boolean): Summary? {
|
||||
val prefs = context.getSharedPreferences("summary", Context.MODE_PRIVATE)
|
||||
val cached = prefs.getString("json", null)?.let { runCatching { parseSummary(it) }.getOrNull() }
|
||||
if (!force && cached != null && Instant.now() < cached.refreshAt) return cached
|
||||
@@ -93,6 +112,7 @@ object SummaryRepo {
|
||||
val json = get("/v1/watch/summary?region=$region&pick=$PICKS")
|
||||
val fresh = parseSummary(json)
|
||||
prefs.edit().putString("json", json).apply()
|
||||
refreshSurfaces(context)
|
||||
fresh
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "summary 받기 실패, 캐시 사용", e)
|
||||
@@ -100,6 +120,16 @@ object SummaryRepo {
|
||||
}
|
||||
}
|
||||
|
||||
/** 새 값을 받으면 시계 화면 칸·타일을 모두 다시 그리게 한다. 칸마다 갱신 시점이 달라 순위가 섞이는 걸 막는다.
|
||||
* 다시 불린 칸들은 방금 저장한 캐시를 읽으니 서버를 또 부르지 않는다. */
|
||||
private fun refreshSurfaces(context: Context) {
|
||||
val sources = listOf(GakComplicationService::class.java, RainComplicationService::class.java, Rank1ComplicationService::class.java,
|
||||
Rank2ComplicationService::class.java, Rank3ComplicationService::class.java, Rank4ComplicationService::class.java,
|
||||
Rank5ComplicationService::class.java, Rank6ComplicationService::class.java, Rank7ComplicationService::class.java)
|
||||
sources.forEach { ComplicationDataSourceUpdateRequester.create(context, ComponentName(context, it)).requestUpdateAll() }
|
||||
TileService.getUpdater(context).requestUpdate(GakTileService::class.java)
|
||||
}
|
||||
|
||||
private fun nearestRegion(context: Context): String? {
|
||||
if (context.checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) return null
|
||||
val lm = context.getSystemService(LocationManager::class.java)
|
||||
|
||||
@@ -34,6 +34,13 @@ 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"
|
||||
|
||||
|
||||
@@ -12,4 +12,4 @@ dependencyResolutionManagement {
|
||||
}
|
||||
}
|
||||
rootProject.name = "nalssigak-watch"
|
||||
include(":app")
|
||||
include(":app", ":watchface")
|
||||
@@ -0,0 +1,19 @@
|
||||
plugins {
|
||||
id("com.android.application")
|
||||
}
|
||||
|
||||
// 코드 없는 워치 스킨(Watch Face Format). 점수는 날씨각 앱(:app)의 순위별 컴플리케이션이 공급한다.
|
||||
android {
|
||||
enableKotlin = false
|
||||
namespace = "kr.o2o.nalssigak.watchface"
|
||||
compileSdk = 37
|
||||
|
||||
defaultConfig {
|
||||
applicationId = "kr.o2o.nalssigak.watchface"
|
||||
// WFF 버전 2 는 Wear OS 5(API 34)부터
|
||||
minSdk = 34
|
||||
targetSdk = 34
|
||||
versionCode = 1
|
||||
versionName = "0.1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,231 @@
|
||||
import json, math, os, sys
|
||||
HERE = os.path.dirname(os.path.abspath(__file__))
|
||||
# 각 이름 → 아이콘. 시계 런타임이 점수 링 안의 작은 이미지를 그려 주지 않아, 이름을 보고 스킨에 넣은 아이콘을 고른다
|
||||
GAK_ICONS = [(d["name"], d["icon"]) for d in json.load(open(os.path.join(HERE, "../../backend/seed/index_definition.json"), encoding="utf-8"))]
|
||||
W = 450
|
||||
CX, CY = 225, 235
|
||||
ORB = 162
|
||||
RING, RR = 68, 148
|
||||
ANGLES = [210, 330, 150, 30, 180, 0]
|
||||
APP = "kr.o2o.nalssigak"
|
||||
INK, ORANGE, SHADE, CARD = "#FF28304A", "#FFFF7A45", "#FFD9E5F4", "#B8FFFFFF"
|
||||
AMB0 = '<Variant mode="AMBIENT" target="alpha" value="0"/>'
|
||||
|
||||
MODES = { # 웹 .b-hero[data-t] 그라데이션, 시간대는 고정 시각 근사
|
||||
"morning": ("[HOUR_0_23] >= 5 && [HOUR_0_23] < 11", "#FFFFD9B8 #FFFFE9D4 #FFDFF0FF", "0 0.4 1", INK),
|
||||
"day": ("[HOUR_0_23] >= 11 && [HOUR_0_23] < 16", "#FF9FD3FF #FFCFE9FF #FFF1F8FF", "0 0.55 1", INK),
|
||||
"evening": ("[HOUR_0_23] >= 16 && [HOUR_0_23] < 21", "#FF8E7CF0 #FFF28AA0 #FFFFC38A", "0 0.48 1", "#FFFFFFFF"),
|
||||
}
|
||||
NIGHT = ("#FF141B3D #FF27306A #FF3D3F86", "0 0.6 1", "#FFFFFFFF")
|
||||
STARS = [(0.22, 0.20), (0.70, 0.14), (0.84, 0.40), (0.14, 0.52), (0.48, 0.10), (0.30, 0.78), (0.76, 0.70)]
|
||||
|
||||
def sky(colors, pos):
|
||||
return f'''<PartDraw x="0" y="0" width="{W}" height="{W}">{AMB0}
|
||||
<Rectangle x="0" y="0" width="{W}" height="{W}"><Fill color="#FFFFFFFF"><LinearGradient startX="0" startY="0" endX="0" endY="{W}" colors="{colors}" positions="{pos}"/></Fill></Rectangle>
|
||||
</PartDraw>'''
|
||||
|
||||
def clock(color, ambient_visible=False):
|
||||
alpha = "0" if ambient_visible else "255"
|
||||
var = '<Variant mode="AMBIENT" target="alpha" value="255"/>' if ambient_visible else AMB0
|
||||
return f'''<DigitalClock x="0" y="44" width="{W}" height="70">
|
||||
<TimeText format="h:mm" hourFormat="SYNC_TO_DEVICE" align="CENTER" x="0" y="0" width="{W}" height="70" alpha="{alpha}">{var}
|
||||
<Font family="bagel_fat_one" size="54" color="{color}"/>
|
||||
</TimeText>
|
||||
</DigitalClock>'''
|
||||
|
||||
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}
|
||||
<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}))))"/>
|
||||
</PartDraw>'''
|
||||
|
||||
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))
|
||||
return f'''<PartDraw x="{CX - ORB // 2}" y="{CY - ORB // 2}" width="{ORB}" height="{ORB}">{AMB0}
|
||||
<Ellipse x="0" y="0" width="{ORB}" height="{ORB}"><Fill color="#FFFF8E4E"><RadialGradient centerX="{int(ORB * .34)}" centerY="{int(ORB * .30)}" radius="{int(ORB * .96)}" colors="{colors}" positions="0 0.3 0.68 1"/></Fill></Ellipse>
|
||||
<Ellipse x="0" y="0" width="{ORB}" height="{ORB}"><Fill color="#00000000"><LinearGradient startX="{int(ORB * .45)}" startY="{int(ORB * .45)}" endX="{ORB}" endY="{ORB}" colors="#00AA3214 #57AA3214" positions="0 1"/></Fill></Ellipse>
|
||||
{blush}
|
||||
</PartDraw>'''
|
||||
|
||||
SUN = "#FFFFF5CF #FFFFC86E #FFFF8E4E #FFEE6436"
|
||||
MOON = "#FFFFFFFF #FFD9D3FF #FFA99FEA #FF7F75CC"
|
||||
|
||||
def sun_rays():
|
||||
"""구슬 둘레의 끝이 둥근 햇살 12개. 1분에 한 바퀴"""
|
||||
size = int(ORB / 0.72)
|
||||
c, r1, r2 = size / 2, size * 0.4, size * 0.462
|
||||
lines = "".join(
|
||||
f'<Line startX="{c + r1 * math.cos(math.radians(a)):.1f}" startY="{c + r1 * math.sin(math.radians(a)):.1f}" endX="{c + r2 * math.cos(math.radians(a)):.1f}" endY="{c + r2 * math.sin(math.radians(a)):.1f}"><Stroke thickness="{size * 0.044:.1f}" color="#FFFFB347" cap="ROUND"/></Line>'
|
||||
for a in range(0, 360, 30))
|
||||
return f'''<PartDraw x="{CX - size // 2}" y="{CY - size // 2}" width="{size}" height="{size}">{AMB0}
|
||||
{lines}
|
||||
<Transform target="angle" value="360 * fract([SECOND_MILLISECOND] / 60)"/>
|
||||
</PartDraw>'''
|
||||
|
||||
def mode_block(colors, pos, ink, night=False):
|
||||
parts = [sky(colors, pos)]
|
||||
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)]
|
||||
return "\n ".join(parts)
|
||||
|
||||
def text(x, y, w, h, family, size, color, expr, amb=False):
|
||||
return f'''<PartText x="{x}" y="{y}" width="{w}" height="{h}">{AMB0 if amb else ""}
|
||||
<Text align="CENTER" ellipsis="TRUE"><Font family="{family}" size="{size}" color="{color}"><Template><![CDATA[%s]]><Parameter expression="{expr}"/></Template></Font></Text>
|
||||
</PartText>'''
|
||||
|
||||
def orb_slot():
|
||||
x, y = CX - ORB // 2, CY - ORB // 2
|
||||
body = text(0, 30, ORB, 74, "bagel_fat_one", 58, "#FFFFFFFF", "[COMPLICATION.TEXT]") + text(14, 100, ORB - 28, 30, "jua", 21, "#FFFFFFFF", "[COMPLICATION.TITLE]")
|
||||
return f'''<ComplicationSlot slotId="0" x="{x}" y="{y}" width="{ORB}" height="{ORB}" displayName="slot_rank1" supportedTypes="RANGED_VALUE SHORT_TEXT EMPTY" isCustomizable="TRUE">
|
||||
<DefaultProviderPolicy defaultSystemProvider="EMPTY" defaultSystemProviderType="EMPTY" primaryProvider="{APP}/{APP}.Rank1ComplicationService" primaryProviderType="RANGED_VALUE"/>
|
||||
<BoundingOval x="0" y="0" width="{ORB}" height="{ORB}"/>
|
||||
<Complication type="RANGED_VALUE">
|
||||
{body}
|
||||
</Complication>
|
||||
<Complication type="SHORT_TEXT">
|
||||
{body}
|
||||
</Complication>
|
||||
<Complication type="EMPTY"/>
|
||||
</ComplicationSlot>'''
|
||||
|
||||
PROGRESS = "clamp([COMPLICATION.RANGED_VALUE_VALUE], [COMPLICATION.RANGED_VALUE_MIN], [COMPLICATION.RANGED_VALUE_MAX]) / ([COMPLICATION.RANGED_VALUE_MAX] - [COMPLICATION.RANGED_VALUE_MIN]) * 360"
|
||||
|
||||
def icon_by_title(x, y, size):
|
||||
exprs = "".join(f'<Expression name="i{n}"><![CDATA[[COMPLICATION.TITLE] == "{name}"]]></Expression>' for n, (name, _) in enumerate(GAK_ICONS))
|
||||
cmps = "".join(f'<Compare expression="i{n}"><PartImage x="{x}" y="{y}" width="{size}" height="{size}">{AMB0}<Image resource="e_{icon}"/></PartImage></Compare>'
|
||||
for n, (_, icon) in enumerate(GAK_ICONS))
|
||||
return f"<Condition><Expressions>{exprs}</Expressions>{cmps}</Condition>"
|
||||
|
||||
def ring_slot(i, angle):
|
||||
r = math.radians(angle)
|
||||
x = int(CX + RR * math.cos(r) - RING / 2)
|
||||
y = int(CY + RR * math.sin(r) - RING / 2)
|
||||
s, a = RING, RING - 6
|
||||
return f'''<ComplicationSlot slotId="{i + 1}" x="{x}" y="{y}" width="{s}" height="{s}" displayName="slot_ring" supportedTypes="RANGED_VALUE SHORT_TEXT EMPTY" isCustomizable="TRUE">
|
||||
<DefaultProviderPolicy defaultSystemProvider="EMPTY" defaultSystemProviderType="EMPTY" primaryProvider="{APP}/{APP}.Rank{i + 2}ComplicationService" primaryProviderType="RANGED_VALUE"/>
|
||||
<BoundingOval x="0" y="0" width="{s}" height="{s}"/>
|
||||
<Complication type="RANGED_VALUE">
|
||||
<PartDraw x="0" y="0" width="{s}" height="{s}">{AMB0}
|
||||
<Ellipse x="0" y="0" width="{s}" height="{s}"><Fill color="{CARD}"/></Ellipse>
|
||||
</PartDraw>
|
||||
<PartDraw x="3" y="3" width="{a}" height="{a}">{AMB0}
|
||||
<Arc centerX="{a / 2}" centerY="{a / 2}" width="{a}" height="{a}" startAngle="0" endAngle="360"><Stroke thickness="5" color="{SHADE}"/></Arc>
|
||||
<Arc centerX="{a / 2}" centerY="{a / 2}" width="{a}" height="{a}" startAngle="0" endAngle="360"><Stroke thickness="5" color="{ORANGE}" cap="ROUND"/>
|
||||
<Transform target="endAngle" value="{PROGRESS}"/>
|
||||
</Arc>
|
||||
</PartDraw>
|
||||
{icon_by_title(s // 2 - 14, 9, 28)}
|
||||
{text(0, 35, s, 24, "bagel_fat_one", 18, INK, "[COMPLICATION.TEXT]", amb=True)}
|
||||
</Complication>
|
||||
<Complication type="SHORT_TEXT">
|
||||
<PartDraw x="0" y="0" width="{s}" height="{s}">{AMB0}
|
||||
<Ellipse x="0" y="0" width="{s}" height="{s}"><Fill color="{CARD}"/></Ellipse>
|
||||
</PartDraw>
|
||||
{text(0, 22, s, 24, "bagel_fat_one", 18, INK, "[COMPLICATION.TEXT]", amb=True)}
|
||||
</Complication>
|
||||
<Complication type="EMPTY"/>
|
||||
</ComplicationSlot>'''
|
||||
|
||||
# 기기 언어와 상관없이 한글 요일 ([DAY_OF_WEEK] 1 = 일요일)
|
||||
WEEKDAY = " : ".join(f'[DAY_OF_WEEK] == {n + 1} ? "{d}"' for n, d in enumerate("일월화수목금")) + " : "토""
|
||||
|
||||
def precip_slot():
|
||||
"""화면 전체를 덮는 숨은 칸. 날씨각 앱(RainComplicationService)이 rain | snow | none 을 주면 빗줄기·눈송이를 그린다.
|
||||
터치는 막지 않게 BoundingOval 을 1px 로 둔다. 주기는 60 의 약수여야 분이 바뀔 때 튀지 않는다."""
|
||||
import random
|
||||
r = random.Random(7)
|
||||
drops, flakes = [], []
|
||||
for i in range(34):
|
||||
x, ph = r.randint(0, W), r.random()
|
||||
period = r.choice([1, 1.2, 1.5])
|
||||
ln = r.randint(16, 26)
|
||||
drops.append(f'''<PartDraw x="{x}" y="0" width="8" height="{ln + 2}">{AMB0}
|
||||
<Line startX="7" startY="1" endX="2" endY="{ln}"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="{W + 40} * fract([SECOND_MILLISECOND] / {period} + {ph:.2f}) - 30"/>
|
||||
</PartDraw>''')
|
||||
for i in range(26):
|
||||
x, ph = r.randint(0, W), r.random()
|
||||
period = r.choice([6, 10, 12])
|
||||
d = r.randint(5, 10)
|
||||
flakes.append(f'''<PartDraw x="{x}" y="0" width="{d}" height="{d}">{AMB0}
|
||||
<Ellipse x="0" y="0" width="{d}" height="{d}"><Fill color="#E6FFFFFF"/></Ellipse>
|
||||
<Transform target="y" value="{W + 30} * fract([SECOND_MILLISECOND] / {period} + {ph:.2f}) - 15"/>
|
||||
<Transform target="x" value="{x} + 9 * sin(rad(360 * fract([SECOND_MILLISECOND] / 3 + {ph:.2f})))"/>
|
||||
</PartDraw>''')
|
||||
shade = lambda c: f'<PartDraw x="0" y="0" width="{W}" height="{W}">{AMB0}<Rectangle x="0" y="0" width="{W}" height="{W}"><Fill color="{c}"/></Rectangle></PartDraw>'
|
||||
return f'''<ComplicationSlot slotId="7" x="0" y="0" width="{W}" height="{W}" displayName="slot_precip" supportedTypes="SHORT_TEXT EMPTY" isCustomizable="FALSE">
|
||||
<DefaultProviderPolicy defaultSystemProvider="EMPTY" defaultSystemProviderType="EMPTY" primaryProvider="{APP}/{APP}.RainComplicationService" primaryProviderType="SHORT_TEXT"/>
|
||||
<BoundingOval x="0" y="0" width="1" height="1"/>
|
||||
<Complication type="SHORT_TEXT">
|
||||
<Condition>
|
||||
<Expressions>
|
||||
<Expression name="rain"><![CDATA[[COMPLICATION.TEXT] == "rain"]]></Expression>
|
||||
<Expression name="snow"><![CDATA[[COMPLICATION.TEXT] == "snow"]]></Expression>
|
||||
</Expressions>
|
||||
<Compare expression="rain">
|
||||
{shade("#66485A78")}
|
||||
{"".join(drops)}
|
||||
</Compare>
|
||||
<Compare expression="snow">
|
||||
{shade("#40A0AEC4")}
|
||||
{"".join(flakes)}
|
||||
</Compare>
|
||||
</Condition>
|
||||
</Complication>
|
||||
<Complication type="EMPTY"/>
|
||||
</ComplicationSlot>'''
|
||||
|
||||
def date_chip():
|
||||
return f'''<PartDraw x="140" y="378" width="170" height="36">{AMB0}
|
||||
<RoundRectangle x="0" y="0" width="170" height="36" cornerRadiusX="18" cornerRadiusY="18"><Fill color="{CARD}"/></RoundRectangle>
|
||||
<RoundRectangle x="0" y="31" width="170" height="5" cornerRadiusX="2" cornerRadiusY="2"><Fill color="#E6D9E5F4"/></RoundRectangle>
|
||||
</PartDraw>
|
||||
<PartText x="140" y="380" width="170" height="30">{AMB0}
|
||||
<Text align="CENTER"><Font family="jua" size="19" color="{INK}"><Template><![CDATA[%d월 %d일 %s요일]]><Parameter expression="[MONTH]"/><Parameter expression="[DAY]"/><Parameter expression="{WEEKDAY}"/></Template></Font></Text>
|
||||
</PartText>'''
|
||||
|
||||
exprs = "\n ".join(f'<Expression name="{k}"><![CDATA[{v[0].replace(">", ">").replace("<", "<").replace("&", "&")}]]></Expression>' for k, v in MODES.items())
|
||||
compares = "\n ".join(f'<Compare expression="{k}">\n {mode_block(v[1], v[2], v[3])}\n </Compare>' for k, v in MODES.items())
|
||||
|
||||
xml = f'''<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- 날씨각 워치 스킨. 앱 첫 장(HeroPage)과 같은 배치: 시간대 하늘, 해 구슬(1위), 둘레 링(2~7위). 점수는 날씨각 앱의 RankNComplicationService 가 공급한다.
|
||||
직접 고치지 말고 watch/watchface/gen_watchface.py 를 고친 뒤 다시 만든다: python3 gen_watchface.py src/main/res/raw/watchface.xml -->
|
||||
<WatchFace width="{W}" height="{W}">
|
||||
<Metadata key="CLOCK_TYPE" value="DIGITAL"/>
|
||||
<Metadata key="PREVIEW_TIME" value="11:52:00"/>
|
||||
<Scene backgroundColor="#FF000000">
|
||||
<!-- ponytail: 시간대는 고정 시각(5·11·16·21시)으로 근사. 일몰 기준으로 바꾸려면 앱이 공급하는 값으로 -->
|
||||
<Condition>
|
||||
<Expressions>
|
||||
{exprs}
|
||||
</Expressions>
|
||||
{compares}
|
||||
<Default>
|
||||
{mode_block(NIGHT[0], NIGHT[1], NIGHT[2], night=True)}
|
||||
</Default>
|
||||
</Condition>
|
||||
<!-- 주의: 칸(ComplicationSlot) 순서·slotId 를 바꿔 덮어 설치하면 기존 기기에서 공급원이 한 칸씩 밀린다 (에뮬레이터에서 확인). 새 칸은 맨 뒤에 붙인다 -->
|
||||
{precip_slot()}
|
||||
<!-- 해 구슬은 비 막 위에 (밤엔 달빛) -->
|
||||
<Condition>
|
||||
<Expressions><Expression name="night"><![CDATA[[HOUR_0_23] < 5 || [HOUR_0_23] >= 21]]></Expression></Expressions>
|
||||
<Compare expression="night">{orb_fill(MOON)}</Compare>
|
||||
<Default>{sun_rays()}{orb_fill(SUN)}</Default>
|
||||
</Condition>
|
||||
{clock("#FFFFFFFF", ambient_visible=True)}
|
||||
{orb_slot()}
|
||||
{"".join(ring_slot(i, a) for i, a in enumerate(ANGLES))}
|
||||
{date_chip()}
|
||||
</Scene>
|
||||
</WatchFace>
|
||||
'''
|
||||
open(sys.argv[1], "w").write(xml)
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<uses-feature android:name="android.hardware.type.watch" />
|
||||
|
||||
<!-- Watch Face Format 은 코드가 없어야 한다 -->
|
||||
<application
|
||||
android:hasCode="false"
|
||||
android:icon="@drawable/preview"
|
||||
android:label="@string/watch_face_name">
|
||||
<meta-data android:name="com.google.android.wearable.standalone" android:value="true" />
|
||||
<property android:name="com.google.wear.watchface.format.version" android:value="2" />
|
||||
</application>
|
||||
</manifest>
|
||||
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 8.7 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 8.8 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 62 KiB |
@@ -0,0 +1,537 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- 날씨각 워치 스킨. 앱 첫 장(HeroPage)과 같은 배치: 시간대 하늘, 해 구슬(1위), 둘레 링(2~7위). 점수는 날씨각 앱의 RankNComplicationService 가 공급한다.
|
||||
직접 고치지 말고 watch/watchface/gen_watchface.py 를 고친 뒤 다시 만든다: python3 gen_watchface.py src/main/res/raw/watchface.xml -->
|
||||
<WatchFace width="450" height="450">
|
||||
<Metadata key="CLOCK_TYPE" value="DIGITAL"/>
|
||||
<Metadata key="PREVIEW_TIME" value="11:52:00"/>
|
||||
<Scene backgroundColor="#FF000000">
|
||||
<!-- ponytail: 시간대는 고정 시각(5·11·16·21시)으로 근사. 일몰 기준으로 바꾸려면 앱이 공급하는 값으로 -->
|
||||
<Condition>
|
||||
<Expressions>
|
||||
<Expression name="morning"><![CDATA[[HOUR_0_23] >= 5 && [HOUR_0_23] < 11]]></Expression>
|
||||
<Expression name="day"><![CDATA[[HOUR_0_23] >= 11 && [HOUR_0_23] < 16]]></Expression>
|
||||
<Expression name="evening"><![CDATA[[HOUR_0_23] >= 16 && [HOUR_0_23] < 21]]></Expression>
|
||||
</Expressions>
|
||||
<Compare expression="morning">
|
||||
<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"/>
|
||||
<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))))"/>
|
||||
</PartDraw>
|
||||
<PartDraw x="270" 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))))"/>
|
||||
</PartDraw>
|
||||
<DigitalClock x="0" y="44" width="450" height="70">
|
||||
<TimeText format="h:mm" hourFormat="SYNC_TO_DEVICE" align="CENTER" x="0" y="0" width="450" height="70" alpha="255"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Font family="bagel_fat_one" size="54" color="#FF28304A"/>
|
||||
</TimeText>
|
||||
</DigitalClock>
|
||||
</Compare>
|
||||
<Compare expression="day">
|
||||
<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"/>
|
||||
<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))))"/>
|
||||
</PartDraw>
|
||||
<PartDraw x="270" 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))))"/>
|
||||
</PartDraw>
|
||||
<DigitalClock x="0" y="44" width="450" height="70">
|
||||
<TimeText format="h:mm" hourFormat="SYNC_TO_DEVICE" align="CENTER" x="0" y="0" width="450" height="70" alpha="255"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Font family="bagel_fat_one" size="54" color="#FF28304A"/>
|
||||
</TimeText>
|
||||
</DigitalClock>
|
||||
</Compare>
|
||||
<Compare expression="evening">
|
||||
<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"/>
|
||||
<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))))"/>
|
||||
</PartDraw>
|
||||
<PartDraw x="270" 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))))"/>
|
||||
</PartDraw>
|
||||
<DigitalClock x="0" y="44" width="450" height="70">
|
||||
<TimeText format="h:mm" hourFormat="SYNC_TO_DEVICE" align="CENTER" x="0" y="0" width="450" height="70" alpha="255"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Font family="bagel_fat_one" size="54" color="#FFFFFFFF"/>
|
||||
</TimeText>
|
||||
</DigitalClock>
|
||||
</Compare>
|
||||
<Default>
|
||||
<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="#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"/>
|
||||
<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))))"/>
|
||||
</PartDraw>
|
||||
<PartDraw x="270" 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))))"/>
|
||||
</PartDraw>
|
||||
<DigitalClock x="0" y="44" width="450" height="70">
|
||||
<TimeText format="h:mm" hourFormat="SYNC_TO_DEVICE" align="CENTER" x="0" y="0" width="450" height="70" alpha="255"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Font family="bagel_fat_one" size="54" color="#FFFFFFFF"/>
|
||||
</TimeText>
|
||||
</DigitalClock>
|
||||
</Default>
|
||||
</Condition>
|
||||
<!-- 주의: 칸(ComplicationSlot) 순서·slotId 를 바꿔 덮어 설치하면 기존 기기에서 공급원이 한 칸씩 밀린다 (에뮬레이터에서 확인). 새 칸은 맨 뒤에 붙인다 -->
|
||||
<ComplicationSlot slotId="7" x="0" y="0" width="450" height="450" displayName="slot_precip" supportedTypes="SHORT_TEXT EMPTY" isCustomizable="FALSE">
|
||||
<DefaultProviderPolicy defaultSystemProvider="EMPTY" defaultSystemProviderType="EMPTY" primaryProvider="kr.o2o.nalssigak/kr.o2o.nalssigak.RainComplicationService" primaryProviderType="SHORT_TEXT"/>
|
||||
<BoundingOval x="0" y="0" width="1" height="1"/>
|
||||
<Complication type="SHORT_TEXT">
|
||||
<Condition>
|
||||
<Expressions>
|
||||
<Expression name="rain"><![CDATA[[COMPLICATION.TEXT] == "rain"]]></Expression>
|
||||
<Expression name="snow"><![CDATA[[COMPLICATION.TEXT] == "snow"]]></Expression>
|
||||
</Expressions>
|
||||
<Compare expression="rain">
|
||||
<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="#66485A78"/></Rectangle></PartDraw>
|
||||
<PartDraw x="165" y="0" width="8" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="26"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1.2 + 0.95) - 30"/>
|
||||
</PartDraw><PartDraw x="24" y="0" width="8" height="19"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="17"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1.5 + 0.07) - 30"/>
|
||||
</PartDraw><PartDraw x="187" y="0" width="8" height="21"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="19"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1.5 + 0.58) - 30"/>
|
||||
</PartDraw><PartDraw x="19" y="0" width="8" height="19"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="17"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1.2 + 0.09) - 30"/>
|
||||
</PartDraw><PartDraw x="123" y="0" width="8" height="18"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="16"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1.2 + 0.09) - 30"/>
|
||||
</PartDraw><PartDraw x="423" y="0" width="8" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="26"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1 + 0.57) - 30"/>
|
||||
</PartDraw><PartDraw x="321" y="0" width="8" height="27"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="25"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1 + 0.58) - 30"/>
|
||||
</PartDraw><PartDraw x="299" y="0" width="8" height="18"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="16"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1 + 0.40) - 30"/>
|
||||
</PartDraw><PartDraw x="285" y="0" width="8" height="24"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="22"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1.2 + 0.86) - 30"/>
|
||||
</PartDraw><PartDraw x="73" y="0" width="8" height="22"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="20"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1.5 + 0.54) - 30"/>
|
||||
</PartDraw><PartDraw x="286" y="0" width="8" height="19"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="17"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1 + 0.82) - 30"/>
|
||||
</PartDraw><PartDraw x="297" y="0" width="8" height="23"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="21"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1 + 0.57) - 30"/>
|
||||
</PartDraw><PartDraw x="49" y="0" width="8" height="27"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="25"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1 + 0.55) - 30"/>
|
||||
</PartDraw><PartDraw x="30" y="0" width="8" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="26"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1.2 + 0.62) - 30"/>
|
||||
</PartDraw><PartDraw x="272" y="0" width="8" height="25"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="23"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1.2 + 0.43) - 30"/>
|
||||
</PartDraw><PartDraw x="299" y="0" width="8" height="22"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="20"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1.2 + 0.92) - 30"/>
|
||||
</PartDraw><PartDraw x="127" y="0" width="8" height="21"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="19"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1.5 + 0.79) - 30"/>
|
||||
</PartDraw><PartDraw x="41" y="0" width="8" height="25"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="23"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1.5 + 0.57) - 30"/>
|
||||
</PartDraw><PartDraw x="448" y="0" width="8" height="22"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="20"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1.2 + 0.34) - 30"/>
|
||||
</PartDraw><PartDraw x="311" y="0" width="8" height="26"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="24"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1 + 0.98) - 30"/>
|
||||
</PartDraw><PartDraw x="214" y="0" width="8" height="20"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="18"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1.2 + 0.16) - 30"/>
|
||||
</PartDraw><PartDraw x="250" y="0" width="8" height="19"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="17"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1.5 + 0.42) - 30"/>
|
||||
</PartDraw><PartDraw x="391" y="0" width="8" height="23"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="21"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1.2 + 0.56) - 30"/>
|
||||
</PartDraw><PartDraw x="355" y="0" width="8" height="27"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="25"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1.2 + 0.35) - 30"/>
|
||||
</PartDraw><PartDraw x="408" y="0" width="8" height="22"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="20"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1 + 0.46) - 30"/>
|
||||
</PartDraw><PartDraw x="242" y="0" width="8" height="18"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="16"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1 + 0.70) - 30"/>
|
||||
</PartDraw><PartDraw x="374" y="0" width="8" height="27"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="25"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1.5 + 0.70) - 30"/>
|
||||
</PartDraw><PartDraw x="348" y="0" width="8" height="24"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="22"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1.2 + 0.82) - 30"/>
|
||||
</PartDraw><PartDraw x="342" y="0" width="8" height="23"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="21"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1.2 + 0.35) - 30"/>
|
||||
</PartDraw><PartDraw x="86" y="0" width="8" height="18"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="16"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1.2 + 0.61) - 30"/>
|
||||
</PartDraw><PartDraw x="111" y="0" width="8" height="21"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="19"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1 + 0.77) - 30"/>
|
||||
</PartDraw><PartDraw x="203" y="0" width="8" height="19"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="17"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1.2 + 0.39) - 30"/>
|
||||
</PartDraw><PartDraw x="85" y="0" width="8" height="22"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="20"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1.5 + 0.45) - 30"/>
|
||||
</PartDraw><PartDraw x="70" y="0" width="8" height="22"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="7" startY="1" endX="2" endY="20"><Stroke thickness="2.5" color="#CCEAF2FF" cap="ROUND"/></Line>
|
||||
<Transform target="y" value="490 * fract([SECOND_MILLISECOND] / 1.5 + 0.82) - 30"/>
|
||||
</PartDraw>
|
||||
</Compare>
|
||||
<Compare expression="snow">
|
||||
<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="#40A0AEC4"/></Rectangle></PartDraw>
|
||||
<PartDraw x="361" y="0" width="10" height="10"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="10" height="10"><Fill color="#E6FFFFFF"/></Ellipse>
|
||||
<Transform target="y" value="480 * fract([SECOND_MILLISECOND] / 10 + 0.42) - 15"/>
|
||||
<Transform target="x" value="361 + 9 * sin(rad(360 * fract([SECOND_MILLISECOND] / 3 + 0.42)))"/>
|
||||
</PartDraw><PartDraw x="194" y="0" width="5" height="5"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="5" height="5"><Fill color="#E6FFFFFF"/></Ellipse>
|
||||
<Transform target="y" value="480 * fract([SECOND_MILLISECOND] / 6 + 0.96) - 15"/>
|
||||
<Transform target="x" value="194 + 9 * sin(rad(360 * fract([SECOND_MILLISECOND] / 3 + 0.96)))"/>
|
||||
</PartDraw><PartDraw x="90" y="0" width="6" height="6"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="6" height="6"><Fill color="#E6FFFFFF"/></Ellipse>
|
||||
<Transform target="y" value="480 * fract([SECOND_MILLISECOND] / 12 + 0.15) - 15"/>
|
||||
<Transform target="x" value="90 + 9 * sin(rad(360 * fract([SECOND_MILLISECOND] / 3 + 0.15)))"/>
|
||||
</PartDraw><PartDraw x="6" y="0" width="6" height="6"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="6" height="6"><Fill color="#E6FFFFFF"/></Ellipse>
|
||||
<Transform target="y" value="480 * fract([SECOND_MILLISECOND] / 12 + 0.48) - 15"/>
|
||||
<Transform target="x" value="6 + 9 * sin(rad(360 * fract([SECOND_MILLISECOND] / 3 + 0.48)))"/>
|
||||
</PartDraw><PartDraw x="134" y="0" width="8" height="8"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="8" height="8"><Fill color="#E6FFFFFF"/></Ellipse>
|
||||
<Transform target="y" value="480 * fract([SECOND_MILLISECOND] / 6 + 0.28) - 15"/>
|
||||
<Transform target="x" value="134 + 9 * sin(rad(360 * fract([SECOND_MILLISECOND] / 3 + 0.28)))"/>
|
||||
</PartDraw><PartDraw x="273" y="0" width="7" height="7"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="7" height="7"><Fill color="#E6FFFFFF"/></Ellipse>
|
||||
<Transform target="y" value="480 * fract([SECOND_MILLISECOND] / 12 + 0.37) - 15"/>
|
||||
<Transform target="x" value="273 + 9 * sin(rad(360 * fract([SECOND_MILLISECOND] / 3 + 0.37)))"/>
|
||||
</PartDraw><PartDraw x="64" y="0" width="9" height="9"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="9" height="9"><Fill color="#E6FFFFFF"/></Ellipse>
|
||||
<Transform target="y" value="480 * fract([SECOND_MILLISECOND] / 12 + 0.69) - 15"/>
|
||||
<Transform target="x" value="64 + 9 * sin(rad(360 * fract([SECOND_MILLISECOND] / 3 + 0.69)))"/>
|
||||
</PartDraw><PartDraw x="335" y="0" width="8" height="8"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="8" height="8"><Fill color="#E6FFFFFF"/></Ellipse>
|
||||
<Transform target="y" value="480 * fract([SECOND_MILLISECOND] / 6 + 0.68) - 15"/>
|
||||
<Transform target="x" value="335 + 9 * sin(rad(360 * fract([SECOND_MILLISECOND] / 3 + 0.68)))"/>
|
||||
</PartDraw><PartDraw x="445" y="0" width="9" height="9"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="9" height="9"><Fill color="#E6FFFFFF"/></Ellipse>
|
||||
<Transform target="y" value="480 * fract([SECOND_MILLISECOND] / 12 + 0.78) - 15"/>
|
||||
<Transform target="x" value="445 + 9 * sin(rad(360 * fract([SECOND_MILLISECOND] / 3 + 0.78)))"/>
|
||||
</PartDraw><PartDraw x="200" y="0" width="5" height="5"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="5" height="5"><Fill color="#E6FFFFFF"/></Ellipse>
|
||||
<Transform target="y" value="480 * fract([SECOND_MILLISECOND] / 10 + 0.40) - 15"/>
|
||||
<Transform target="x" value="200 + 9 * sin(rad(360 * fract([SECOND_MILLISECOND] / 3 + 0.40)))"/>
|
||||
</PartDraw><PartDraw x="246" y="0" width="6" height="6"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="6" height="6"><Fill color="#E6FFFFFF"/></Ellipse>
|
||||
<Transform target="y" value="480 * fract([SECOND_MILLISECOND] / 6 + 0.63) - 15"/>
|
||||
<Transform target="x" value="246 + 9 * sin(rad(360 * fract([SECOND_MILLISECOND] / 3 + 0.63)))"/>
|
||||
</PartDraw><PartDraw x="34" y="0" width="6" height="6"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="6" height="6"><Fill color="#E6FFFFFF"/></Ellipse>
|
||||
<Transform target="y" value="480 * fract([SECOND_MILLISECOND] / 10 + 0.98) - 15"/>
|
||||
<Transform target="x" value="34 + 9 * sin(rad(360 * fract([SECOND_MILLISECOND] / 3 + 0.98)))"/>
|
||||
</PartDraw><PartDraw x="56" y="0" width="5" height="5"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="5" height="5"><Fill color="#E6FFFFFF"/></Ellipse>
|
||||
<Transform target="y" value="480 * fract([SECOND_MILLISECOND] / 6 + 0.34) - 15"/>
|
||||
<Transform target="x" value="56 + 9 * sin(rad(360 * fract([SECOND_MILLISECOND] / 3 + 0.34)))"/>
|
||||
</PartDraw><PartDraw x="0" y="0" width="5" height="5"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="5" height="5"><Fill color="#E6FFFFFF"/></Ellipse>
|
||||
<Transform target="y" value="480 * fract([SECOND_MILLISECOND] / 12 + 0.57) - 15"/>
|
||||
<Transform target="x" value="0 + 9 * sin(rad(360 * fract([SECOND_MILLISECOND] / 3 + 0.57)))"/>
|
||||
</PartDraw><PartDraw x="186" y="0" width="6" height="6"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="6" height="6"><Fill color="#E6FFFFFF"/></Ellipse>
|
||||
<Transform target="y" value="480 * fract([SECOND_MILLISECOND] / 6 + 0.61) - 15"/>
|
||||
<Transform target="x" value="186 + 9 * sin(rad(360 * fract([SECOND_MILLISECOND] / 3 + 0.61)))"/>
|
||||
</PartDraw><PartDraw x="314" y="0" width="7" height="7"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="7" height="7"><Fill color="#E6FFFFFF"/></Ellipse>
|
||||
<Transform target="y" value="480 * fract([SECOND_MILLISECOND] / 12 + 0.38) - 15"/>
|
||||
<Transform target="x" value="314 + 9 * sin(rad(360 * fract([SECOND_MILLISECOND] / 3 + 0.38)))"/>
|
||||
</PartDraw><PartDraw x="177" y="0" width="5" height="5"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="5" height="5"><Fill color="#E6FFFFFF"/></Ellipse>
|
||||
<Transform target="y" value="480 * fract([SECOND_MILLISECOND] / 10 + 0.60) - 15"/>
|
||||
<Transform target="x" value="177 + 9 * sin(rad(360 * fract([SECOND_MILLISECOND] / 3 + 0.60)))"/>
|
||||
</PartDraw><PartDraw x="59" y="0" width="8" height="8"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="8" height="8"><Fill color="#E6FFFFFF"/></Ellipse>
|
||||
<Transform target="y" value="480 * fract([SECOND_MILLISECOND] / 10 + 0.85) - 15"/>
|
||||
<Transform target="x" value="59 + 9 * sin(rad(360 * fract([SECOND_MILLISECOND] / 3 + 0.85)))"/>
|
||||
</PartDraw><PartDraw x="247" y="0" width="5" height="5"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="5" height="5"><Fill color="#E6FFFFFF"/></Ellipse>
|
||||
<Transform target="y" value="480 * fract([SECOND_MILLISECOND] / 6 + 0.31) - 15"/>
|
||||
<Transform target="x" value="247 + 9 * sin(rad(360 * fract([SECOND_MILLISECOND] / 3 + 0.31)))"/>
|
||||
</PartDraw><PartDraw x="383" y="0" width="8" height="8"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="8" height="8"><Fill color="#E6FFFFFF"/></Ellipse>
|
||||
<Transform target="y" value="480 * fract([SECOND_MILLISECOND] / 10 + 0.34) - 15"/>
|
||||
<Transform target="x" value="383 + 9 * sin(rad(360 * fract([SECOND_MILLISECOND] / 3 + 0.34)))"/>
|
||||
</PartDraw><PartDraw x="424" y="0" width="5" height="5"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="5" height="5"><Fill color="#E6FFFFFF"/></Ellipse>
|
||||
<Transform target="y" value="480 * fract([SECOND_MILLISECOND] / 12 + 0.69) - 15"/>
|
||||
<Transform target="x" value="424 + 9 * sin(rad(360 * fract([SECOND_MILLISECOND] / 3 + 0.69)))"/>
|
||||
</PartDraw><PartDraw x="105" y="0" width="7" height="7"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="7" height="7"><Fill color="#E6FFFFFF"/></Ellipse>
|
||||
<Transform target="y" value="480 * fract([SECOND_MILLISECOND] / 12 + 0.95) - 15"/>
|
||||
<Transform target="x" value="105 + 9 * sin(rad(360 * fract([SECOND_MILLISECOND] / 3 + 0.95)))"/>
|
||||
</PartDraw><PartDraw x="75" y="0" width="9" height="9"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="9" height="9"><Fill color="#E6FFFFFF"/></Ellipse>
|
||||
<Transform target="y" value="480 * fract([SECOND_MILLISECOND] / 6 + 0.69) - 15"/>
|
||||
<Transform target="x" value="75 + 9 * sin(rad(360 * fract([SECOND_MILLISECOND] / 3 + 0.69)))"/>
|
||||
</PartDraw><PartDraw x="152" y="0" width="10" height="10"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="10" height="10"><Fill color="#E6FFFFFF"/></Ellipse>
|
||||
<Transform target="y" value="480 * fract([SECOND_MILLISECOND] / 6 + 0.98) - 15"/>
|
||||
<Transform target="x" value="152 + 9 * sin(rad(360 * fract([SECOND_MILLISECOND] / 3 + 0.98)))"/>
|
||||
</PartDraw><PartDraw x="432" y="0" width="6" height="6"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="6" height="6"><Fill color="#E6FFFFFF"/></Ellipse>
|
||||
<Transform target="y" value="480 * fract([SECOND_MILLISECOND] / 10 + 0.26) - 15"/>
|
||||
<Transform target="x" value="432 + 9 * sin(rad(360 * fract([SECOND_MILLISECOND] / 3 + 0.26)))"/>
|
||||
</PartDraw><PartDraw x="182" y="0" width="9" height="9"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="9" height="9"><Fill color="#E6FFFFFF"/></Ellipse>
|
||||
<Transform target="y" value="480 * fract([SECOND_MILLISECOND] / 12 + 0.77) - 15"/>
|
||||
<Transform target="x" value="182 + 9 * sin(rad(360 * fract([SECOND_MILLISECOND] / 3 + 0.77)))"/>
|
||||
</PartDraw>
|
||||
</Compare>
|
||||
</Condition>
|
||||
</Complication>
|
||||
<Complication type="EMPTY"/>
|
||||
</ComplicationSlot>
|
||||
<!-- 해 구슬은 비 막 위에 (밤엔 달빛) -->
|
||||
<Condition>
|
||||
<Expressions><Expression name="night"><![CDATA[[HOUR_0_23] < 5 || [HOUR_0_23] >= 21]]></Expression></Expressions>
|
||||
<Compare expression="night"><PartDraw x="144" y="154" width="162" height="162"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="162" height="162"><Fill color="#FFFF8E4E"><RadialGradient centerX="55" centerY="48" radius="155" colors="#FFFFFFFF #FFD9D3FF #FFA99FEA #FF7F75CC" positions="0 0.3 0.68 1"/></Fill></Ellipse>
|
||||
<Ellipse x="0" y="0" width="162" height="162"><Fill color="#00000000"><LinearGradient startX="72" startY="72" endX="162" endY="162" colors="#00AA3214 #57AA3214" positions="0 1"/></Fill></Ellipse>
|
||||
|
||||
</PartDraw></Compare>
|
||||
<Default><PartDraw x="113" y="123" width="225" height="225"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Line startX="202.5" startY="112.5" endX="216.4" endY="112.5"><Stroke thickness="9.9" color="#FFFFB347" cap="ROUND"/></Line><Line startX="190.4" startY="157.5" endX="202.5" endY="164.5"><Stroke thickness="9.9" color="#FFFFB347" cap="ROUND"/></Line><Line startX="157.5" startY="190.4" endX="164.5" endY="202.5"><Stroke thickness="9.9" color="#FFFFB347" cap="ROUND"/></Line><Line startX="112.5" startY="202.5" endX="112.5" endY="216.4"><Stroke thickness="9.9" color="#FFFFB347" cap="ROUND"/></Line><Line startX="67.5" startY="190.4" endX="60.5" endY="202.5"><Stroke thickness="9.9" color="#FFFFB347" cap="ROUND"/></Line><Line startX="34.6" startY="157.5" endX="22.5" endY="164.5"><Stroke thickness="9.9" color="#FFFFB347" cap="ROUND"/></Line><Line startX="22.5" startY="112.5" endX="8.5" endY="112.5"><Stroke thickness="9.9" color="#FFFFB347" cap="ROUND"/></Line><Line startX="34.6" startY="67.5" endX="22.5" endY="60.5"><Stroke thickness="9.9" color="#FFFFB347" cap="ROUND"/></Line><Line startX="67.5" startY="34.6" endX="60.5" endY="22.5"><Stroke thickness="9.9" color="#FFFFB347" cap="ROUND"/></Line><Line startX="112.5" startY="22.5" endX="112.5" endY="8.5"><Stroke thickness="9.9" color="#FFFFB347" cap="ROUND"/></Line><Line startX="157.5" startY="34.6" endX="164.5" endY="22.5"><Stroke thickness="9.9" color="#FFFFB347" cap="ROUND"/></Line><Line startX="190.4" startY="67.5" endX="202.5" endY="60.5"><Stroke thickness="9.9" color="#FFFFB347" cap="ROUND"/></Line>
|
||||
<Transform target="angle" value="360 * fract([SECOND_MILLISECOND] / 60)"/>
|
||||
</PartDraw><PartDraw x="144" y="154" width="162" height="162"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="162" height="162"><Fill color="#FFFF8E4E"><RadialGradient centerX="55" centerY="48" radius="155" colors="#FFFFF5CF #FFFFC86E #FFFF8E4E #FFEE6436" positions="0 0.3 0.68 1"/></Fill></Ellipse>
|
||||
<Ellipse x="0" y="0" width="162" height="162"><Fill color="#00000000"><LinearGradient startX="72" startY="72" endX="162" endY="162" colors="#00AA3214 #57AA3214" positions="0 1"/></Fill></Ellipse>
|
||||
<Ellipse x="19" y="100" width="25" height="14"><Fill color="#73FF7A8A"/></Ellipse><Ellipse x="116" y="100" width="25" height="14"><Fill color="#73FF7A8A"/></Ellipse>
|
||||
</PartDraw></Default>
|
||||
</Condition>
|
||||
<DigitalClock x="0" y="44" width="450" height="70">
|
||||
<TimeText format="h:mm" hourFormat="SYNC_TO_DEVICE" align="CENTER" x="0" y="0" width="450" height="70" alpha="0"><Variant mode="AMBIENT" target="alpha" value="255"/>
|
||||
<Font family="bagel_fat_one" size="54" color="#FFFFFFFF"/>
|
||||
</TimeText>
|
||||
</DigitalClock>
|
||||
<ComplicationSlot slotId="0" x="144" y="154" width="162" height="162" displayName="slot_rank1" supportedTypes="RANGED_VALUE SHORT_TEXT EMPTY" isCustomizable="TRUE">
|
||||
<DefaultProviderPolicy defaultSystemProvider="EMPTY" defaultSystemProviderType="EMPTY" primaryProvider="kr.o2o.nalssigak/kr.o2o.nalssigak.Rank1ComplicationService" primaryProviderType="RANGED_VALUE"/>
|
||||
<BoundingOval x="0" y="0" width="162" height="162"/>
|
||||
<Complication type="RANGED_VALUE">
|
||||
<PartText x="0" y="30" width="162" height="74">
|
||||
<Text align="CENTER" ellipsis="TRUE"><Font family="bagel_fat_one" size="58" color="#FFFFFFFF"><Template><![CDATA[%s]]><Parameter expression="[COMPLICATION.TEXT]"/></Template></Font></Text>
|
||||
</PartText><PartText x="14" y="100" width="134" height="30">
|
||||
<Text align="CENTER" ellipsis="TRUE"><Font family="jua" size="21" color="#FFFFFFFF"><Template><![CDATA[%s]]><Parameter expression="[COMPLICATION.TITLE]"/></Template></Font></Text>
|
||||
</PartText>
|
||||
</Complication>
|
||||
<Complication type="SHORT_TEXT">
|
||||
<PartText x="0" y="30" width="162" height="74">
|
||||
<Text align="CENTER" ellipsis="TRUE"><Font family="bagel_fat_one" size="58" color="#FFFFFFFF"><Template><![CDATA[%s]]><Parameter expression="[COMPLICATION.TEXT]"/></Template></Font></Text>
|
||||
</PartText><PartText x="14" y="100" width="134" height="30">
|
||||
<Text align="CENTER" ellipsis="TRUE"><Font family="jua" size="21" color="#FFFFFFFF"><Template><![CDATA[%s]]><Parameter expression="[COMPLICATION.TITLE]"/></Template></Font></Text>
|
||||
</PartText>
|
||||
</Complication>
|
||||
<Complication type="EMPTY"/>
|
||||
</ComplicationSlot>
|
||||
<ComplicationSlot slotId="1" x="62" y="127" width="68" height="68" displayName="slot_ring" supportedTypes="RANGED_VALUE SHORT_TEXT EMPTY" isCustomizable="TRUE">
|
||||
<DefaultProviderPolicy defaultSystemProvider="EMPTY" defaultSystemProviderType="EMPTY" primaryProvider="kr.o2o.nalssigak/kr.o2o.nalssigak.Rank2ComplicationService" primaryProviderType="RANGED_VALUE"/>
|
||||
<BoundingOval x="0" y="0" width="68" height="68"/>
|
||||
<Complication type="RANGED_VALUE">
|
||||
<PartDraw x="0" y="0" width="68" height="68"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="68" height="68"><Fill color="#B8FFFFFF"/></Ellipse>
|
||||
</PartDraw>
|
||||
<PartDraw x="3" y="3" width="62" height="62"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Arc centerX="31.0" centerY="31.0" width="62" height="62" startAngle="0" endAngle="360"><Stroke thickness="5" color="#FFD9E5F4"/></Arc>
|
||||
<Arc centerX="31.0" centerY="31.0" width="62" height="62" startAngle="0" endAngle="360"><Stroke thickness="5" color="#FFFF7A45" cap="ROUND"/>
|
||||
<Transform target="endAngle" value="clamp([COMPLICATION.RANGED_VALUE_VALUE], [COMPLICATION.RANGED_VALUE_MIN], [COMPLICATION.RANGED_VALUE_MAX]) / ([COMPLICATION.RANGED_VALUE_MAX] - [COMPLICATION.RANGED_VALUE_MIN]) * 360"/>
|
||||
</Arc>
|
||||
</PartDraw>
|
||||
<Condition><Expressions><Expression name="i0"><![CDATA[[COMPLICATION.TITLE] == "야장각"]]></Expression><Expression name="i1"><![CDATA[[COMPLICATION.TITLE] == "피크닉각"]]></Expression><Expression name="i2"><![CDATA[[COMPLICATION.TITLE] == "치맥각"]]></Expression><Expression name="i3"><![CDATA[[COMPLICATION.TITLE] == "산책각"]]></Expression><Expression name="i4"><![CDATA[[COMPLICATION.TITLE] == "환기각"]]></Expression><Expression name="i5"><![CDATA[[COMPLICATION.TITLE] == "등산각"]]></Expression><Expression name="i6"><![CDATA[[COMPLICATION.TITLE] == "세차각"]]></Expression><Expression name="i7"><![CDATA[[COMPLICATION.TITLE] == "캠핑각"]]></Expression><Expression name="i8"><![CDATA[[COMPLICATION.TITLE] == "러닝각"]]></Expression><Expression name="i9"><![CDATA[[COMPLICATION.TITLE] == "별보기각"]]></Expression><Expression name="i10"><![CDATA[[COMPLICATION.TITLE] == "짬뽕각"]]></Expression><Expression name="i11"><![CDATA[[COMPLICATION.TITLE] == "막걸리각"]]></Expression><Expression name="i12"><![CDATA[[COMPLICATION.TITLE] == "뜨아각"]]></Expression><Expression name="i13"><![CDATA[[COMPLICATION.TITLE] == "빨래각"]]></Expression><Expression name="i14"><![CDATA[[COMPLICATION.TITLE] == "자전거각"]]></Expression><Expression name="i15"><![CDATA[[COMPLICATION.TITLE] == "멍뭉산책각"]]></Expression><Expression name="i16"><![CDATA[[COMPLICATION.TITLE] == "김서림각"]]></Expression><Expression name="i17"><![CDATA[[COMPLICATION.TITLE] == "화장붕괴각"]]></Expression><Expression name="i18"><![CDATA[[COMPLICATION.TITLE] == "냉면각"]]></Expression><Expression name="i19"><![CDATA[[COMPLICATION.TITLE] == "택시대란각"]]></Expression><Expression name="i20"><![CDATA[[COMPLICATION.TITLE] == "배달폭주각"]]></Expression><Expression name="i21"><![CDATA[[COMPLICATION.TITLE] == "가드닝각"]]></Expression><Expression name="i22"><![CDATA[[COMPLICATION.TITLE] == "사진산책각"]]></Expression><Expression name="i23"><![CDATA[[COMPLICATION.TITLE] == "야구각"]]></Expression><Expression name="i24"><![CDATA[[COMPLICATION.TITLE] == "공부각"]]></Expression><Expression name="i25"><![CDATA[[COMPLICATION.TITLE] == "넷플릭스각"]]></Expression><Expression name="i26"><![CDATA[[COMPLICATION.TITLE] == "군밤각"]]></Expression></Expressions><Compare expression="i0"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_yajang"/></PartImage></Compare><Compare expression="i1"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_picnic"/></PartImage></Compare><Compare expression="i2"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_chimaek"/></PartImage></Compare><Compare expression="i3"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_walk"/></PartImage></Compare><Compare expression="i4"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_vent"/></PartImage></Compare><Compare expression="i5"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_hiking"/></PartImage></Compare><Compare expression="i6"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_carwash"/></PartImage></Compare><Compare expression="i7"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_camping"/></PartImage></Compare><Compare expression="i8"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_running"/></PartImage></Compare><Compare expression="i9"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_stars"/></PartImage></Compare><Compare expression="i10"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_jjamppong"/></PartImage></Compare><Compare expression="i11"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_makgeolli"/></PartImage></Compare><Compare expression="i12"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_iced_hot"/></PartImage></Compare><Compare expression="i13"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_laundry"/></PartImage></Compare><Compare expression="i14"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_bike"/></PartImage></Compare><Compare expression="i15"><PartImage x="20" y="9" width="28" height="28">Line truncated
|
||||
<PartText x="0" y="35" width="68" height="24"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Text align="CENTER" ellipsis="TRUE"><Font family="bagel_fat_one" size="18" color="#FF28304A"><Template><![CDATA[%s]]><Parameter expression="[COMPLICATION.TEXT]"/></Template></Font></Text>
|
||||
</PartText>
|
||||
</Complication>
|
||||
<Complication type="SHORT_TEXT">
|
||||
<PartDraw x="0" y="0" width="68" height="68"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="68" height="68"><Fill color="#B8FFFFFF"/></Ellipse>
|
||||
</PartDraw>
|
||||
<PartText x="0" y="22" width="68" height="24"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Text align="CENTER" ellipsis="TRUE"><Font family="bagel_fat_one" size="18" color="#FF28304A"><Template><![CDATA[%s]]><Parameter expression="[COMPLICATION.TEXT]"/></Template></Font></Text>
|
||||
</PartText>
|
||||
</Complication>
|
||||
<Complication type="EMPTY"/>
|
||||
</ComplicationSlot><ComplicationSlot slotId="2" x="319" y="126" width="68" height="68" displayName="slot_ring" supportedTypes="RANGED_VALUE SHORT_TEXT EMPTY" isCustomizable="TRUE">
|
||||
<DefaultProviderPolicy defaultSystemProvider="EMPTY" defaultSystemProviderType="EMPTY" primaryProvider="kr.o2o.nalssigak/kr.o2o.nalssigak.Rank3ComplicationService" primaryProviderType="RANGED_VALUE"/>
|
||||
<BoundingOval x="0" y="0" width="68" height="68"/>
|
||||
<Complication type="RANGED_VALUE">
|
||||
<PartDraw x="0" y="0" width="68" height="68"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="68" height="68"><Fill color="#B8FFFFFF"/></Ellipse>
|
||||
</PartDraw>
|
||||
<PartDraw x="3" y="3" width="62" height="62"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Arc centerX="31.0" centerY="31.0" width="62" height="62" startAngle="0" endAngle="360"><Stroke thickness="5" color="#FFD9E5F4"/></Arc>
|
||||
<Arc centerX="31.0" centerY="31.0" width="62" height="62" startAngle="0" endAngle="360"><Stroke thickness="5" color="#FFFF7A45" cap="ROUND"/>
|
||||
<Transform target="endAngle" value="clamp([COMPLICATION.RANGED_VALUE_VALUE], [COMPLICATION.RANGED_VALUE_MIN], [COMPLICATION.RANGED_VALUE_MAX]) / ([COMPLICATION.RANGED_VALUE_MAX] - [COMPLICATION.RANGED_VALUE_MIN]) * 360"/>
|
||||
</Arc>
|
||||
</PartDraw>
|
||||
<Condition><Expressions><Expression name="i0"><![CDATA[[COMPLICATION.TITLE] == "야장각"]]></Expression><Expression name="i1"><![CDATA[[COMPLICATION.TITLE] == "피크닉각"]]></Expression><Expression name="i2"><![CDATA[[COMPLICATION.TITLE] == "치맥각"]]></Expression><Expression name="i3"><![CDATA[[COMPLICATION.TITLE] == "산책각"]]></Expression><Expression name="i4"><![CDATA[[COMPLICATION.TITLE] == "환기각"]]></Expression><Expression name="i5"><![CDATA[[COMPLICATION.TITLE] == "등산각"]]></Expression><Expression name="i6"><![CDATA[[COMPLICATION.TITLE] == "세차각"]]></Expression><Expression name="i7"><![CDATA[[COMPLICATION.TITLE] == "캠핑각"]]></Expression><Expression name="i8"><![CDATA[[COMPLICATION.TITLE] == "러닝각"]]></Expression><Expression name="i9"><![CDATA[[COMPLICATION.TITLE] == "별보기각"]]></Expression><Expression name="i10"><![CDATA[[COMPLICATION.TITLE] == "짬뽕각"]]></Expression><Expression name="i11"><![CDATA[[COMPLICATION.TITLE] == "막걸리각"]]></Expression><Expression name="i12"><![CDATA[[COMPLICATION.TITLE] == "뜨아각"]]></Expression><Expression name="i13"><![CDATA[[COMPLICATION.TITLE] == "빨래각"]]></Expression><Expression name="i14"><![CDATA[[COMPLICATION.TITLE] == "자전거각"]]></Expression><Expression name="i15"><![CDATA[[COMPLICATION.TITLE] == "멍뭉산책각"]]></Expression><Expression name="i16"><![CDATA[[COMPLICATION.TITLE] == "김서림각"]]></Expression><Expression name="i17"><![CDATA[[COMPLICATION.TITLE] == "화장붕괴각"]]></Expression><Expression name="i18"><![CDATA[[COMPLICATION.TITLE] == "냉면각"]]></Expression><Expression name="i19"><![CDATA[[COMPLICATION.TITLE] == "택시대란각"]]></Expression><Expression name="i20"><![CDATA[[COMPLICATION.TITLE] == "배달폭주각"]]></Expression><Expression name="i21"><![CDATA[[COMPLICATION.TITLE] == "가드닝각"]]></Expression><Expression name="i22"><![CDATA[[COMPLICATION.TITLE] == "사진산책각"]]></Expression><Expression name="i23"><![CDATA[[COMPLICATION.TITLE] == "야구각"]]></Expression><Expression name="i24"><![CDATA[[COMPLICATION.TITLE] == "공부각"]]></Expression><Expression name="i25"><![CDATA[[COMPLICATION.TITLE] == "넷플릭스각"]]></Expression><Expression name="i26"><![CDATA[[COMPLICATION.TITLE] == "군밤각"]]></Expression></Expressions><Compare expression="i0"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_yajang"/></PartImage></Compare><Compare expression="i1"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_picnic"/></PartImage></Compare><Compare expression="i2"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_chimaek"/></PartImage></Compare><Compare expression="i3"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_walk"/></PartImage></Compare><Compare expression="i4"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_vent"/></PartImage></Compare><Compare expression="i5"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_hiking"/></PartImage></Compare><Compare expression="i6"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_carwash"/></PartImage></Compare><Compare expression="i7"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_camping"/></PartImage></Compare><Compare expression="i8"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_running"/></PartImage></Compare><Compare expression="i9"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_stars"/></PartImage></Compare><Compare expression="i10"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_jjamppong"/></PartImage></Compare><Compare expression="i11"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_makgeolli"/></PartImage></Compare><Compare expression="i12"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_iced_hot"/></PartImage></Compare><Compare expression="i13"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_laundry"/></PartImage></Compare><Compare expression="i14"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_bike"/></PartImage></Compare><Compare expression="i15"><PartImage x="20" y="9" width="28" height="28">Line truncated
|
||||
<PartText x="0" y="35" width="68" height="24"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Text align="CENTER" ellipsis="TRUE"><Font family="bagel_fat_one" size="18" color="#FF28304A"><Template><![CDATA[%s]]><Parameter expression="[COMPLICATION.TEXT]"/></Template></Font></Text>
|
||||
</PartText>
|
||||
</Complication>
|
||||
<Complication type="SHORT_TEXT">
|
||||
<PartDraw x="0" y="0" width="68" height="68"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="68" height="68"><Fill color="#B8FFFFFF"/></Ellipse>
|
||||
</PartDraw>
|
||||
<PartText x="0" y="22" width="68" height="24"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Text align="CENTER" ellipsis="TRUE"><Font family="bagel_fat_one" size="18" color="#FF28304A"><Template><![CDATA[%s]]><Parameter expression="[COMPLICATION.TEXT]"/></Template></Font></Text>
|
||||
</PartText>
|
||||
</Complication>
|
||||
<Complication type="EMPTY"/>
|
||||
</ComplicationSlot><ComplicationSlot slotId="3" x="62" y="275" width="68" height="68" displayName="slot_ring" supportedTypes="RANGED_VALUE SHORT_TEXT EMPTY" isCustomizable="TRUE">
|
||||
<DefaultProviderPolicy defaultSystemProvider="EMPTY" defaultSystemProviderType="EMPTY" primaryProvider="kr.o2o.nalssigak/kr.o2o.nalssigak.Rank4ComplicationService" primaryProviderType="RANGED_VALUE"/>
|
||||
<BoundingOval x="0" y="0" width="68" height="68"/>
|
||||
<Complication type="RANGED_VALUE">
|
||||
<PartDraw x="0" y="0" width="68" height="68"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="68" height="68"><Fill color="#B8FFFFFF"/></Ellipse>
|
||||
</PartDraw>
|
||||
<PartDraw x="3" y="3" width="62" height="62"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Arc centerX="31.0" centerY="31.0" width="62" height="62" startAngle="0" endAngle="360"><Stroke thickness="5" color="#FFD9E5F4"/></Arc>
|
||||
<Arc centerX="31.0" centerY="31.0" width="62" height="62" startAngle="0" endAngle="360"><Stroke thickness="5" color="#FFFF7A45" cap="ROUND"/>
|
||||
<Transform target="endAngle" value="clamp([COMPLICATION.RANGED_VALUE_VALUE], [COMPLICATION.RANGED_VALUE_MIN], [COMPLICATION.RANGED_VALUE_MAX]) / ([COMPLICATION.RANGED_VALUE_MAX] - [COMPLICATION.RANGED_VALUE_MIN]) * 360"/>
|
||||
</Arc>
|
||||
</PartDraw>
|
||||
<Condition><Expressions><Expression name="i0"><![CDATA[[COMPLICATION.TITLE] == "야장각"]]></Expression><Expression name="i1"><![CDATA[[COMPLICATION.TITLE] == "피크닉각"]]></Expression><Expression name="i2"><![CDATA[[COMPLICATION.TITLE] == "치맥각"]]></Expression><Expression name="i3"><![CDATA[[COMPLICATION.TITLE] == "산책각"]]></Expression><Expression name="i4"><![CDATA[[COMPLICATION.TITLE] == "환기각"]]></Expression><Expression name="i5"><![CDATA[[COMPLICATION.TITLE] == "등산각"]]></Expression><Expression name="i6"><![CDATA[[COMPLICATION.TITLE] == "세차각"]]></Expression><Expression name="i7"><![CDATA[[COMPLICATION.TITLE] == "캠핑각"]]></Expression><Expression name="i8"><![CDATA[[COMPLICATION.TITLE] == "러닝각"]]></Expression><Expression name="i9"><![CDATA[[COMPLICATION.TITLE] == "별보기각"]]></Expression><Expression name="i10"><![CDATA[[COMPLICATION.TITLE] == "짬뽕각"]]></Expression><Expression name="i11"><![CDATA[[COMPLICATION.TITLE] == "막걸리각"]]></Expression><Expression name="i12"><![CDATA[[COMPLICATION.TITLE] == "뜨아각"]]></Expression><Expression name="i13"><![CDATA[[COMPLICATION.TITLE] == "빨래각"]]></Expression><Expression name="i14"><![CDATA[[COMPLICATION.TITLE] == "자전거각"]]></Expression><Expression name="i15"><![CDATA[[COMPLICATION.TITLE] == "멍뭉산책각"]]></Expression><Expression name="i16"><![CDATA[[COMPLICATION.TITLE] == "김서림각"]]></Expression><Expression name="i17"><![CDATA[[COMPLICATION.TITLE] == "화장붕괴각"]]></Expression><Expression name="i18"><![CDATA[[COMPLICATION.TITLE] == "냉면각"]]></Expression><Expression name="i19"><![CDATA[[COMPLICATION.TITLE] == "택시대란각"]]></Expression><Expression name="i20"><![CDATA[[COMPLICATION.TITLE] == "배달폭주각"]]></Expression><Expression name="i21"><![CDATA[[COMPLICATION.TITLE] == "가드닝각"]]></Expression><Expression name="i22"><![CDATA[[COMPLICATION.TITLE] == "사진산책각"]]></Expression><Expression name="i23"><![CDATA[[COMPLICATION.TITLE] == "야구각"]]></Expression><Expression name="i24"><![CDATA[[COMPLICATION.TITLE] == "공부각"]]></Expression><Expression name="i25"><![CDATA[[COMPLICATION.TITLE] == "넷플릭스각"]]></Expression><Expression name="i26"><![CDATA[[COMPLICATION.TITLE] == "군밤각"]]></Expression></Expressions><Compare expression="i0"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_yajang"/></PartImage></Compare><Compare expression="i1"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_picnic"/></PartImage></Compare><Compare expression="i2"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_chimaek"/></PartImage></Compare><Compare expression="i3"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_walk"/></PartImage></Compare><Compare expression="i4"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_vent"/></PartImage></Compare><Compare expression="i5"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_hiking"/></PartImage></Compare><Compare expression="i6"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_carwash"/></PartImage></Compare><Compare expression="i7"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_camping"/></PartImage></Compare><Compare expression="i8"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_running"/></PartImage></Compare><Compare expression="i9"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_stars"/></PartImage></Compare><Compare expression="i10"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_jjamppong"/></PartImage></Compare><Compare expression="i11"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_makgeolli"/></PartImage></Compare><Compare expression="i12"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_iced_hot"/></PartImage></Compare><Compare expression="i13"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_laundry"/></PartImage></Compare><Compare expression="i14"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_bike"/></PartImage></Compare><Compare expression="i15"><PartImage x="20" y="9" width="28" height="28">Line truncated
|
||||
<PartText x="0" y="35" width="68" height="24"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Text align="CENTER" ellipsis="TRUE"><Font family="bagel_fat_one" size="18" color="#FF28304A"><Template><![CDATA[%s]]><Parameter expression="[COMPLICATION.TEXT]"/></Template></Font></Text>
|
||||
</PartText>
|
||||
</Complication>
|
||||
<Complication type="SHORT_TEXT">
|
||||
<PartDraw x="0" y="0" width="68" height="68"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="68" height="68"><Fill color="#B8FFFFFF"/></Ellipse>
|
||||
</PartDraw>
|
||||
<PartText x="0" y="22" width="68" height="24"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Text align="CENTER" ellipsis="TRUE"><Font family="bagel_fat_one" size="18" color="#FF28304A"><Template><![CDATA[%s]]><Parameter expression="[COMPLICATION.TEXT]"/></Template></Font></Text>
|
||||
</PartText>
|
||||
</Complication>
|
||||
<Complication type="EMPTY"/>
|
||||
</ComplicationSlot><ComplicationSlot slotId="4" x="319" y="275" width="68" height="68" displayName="slot_ring" supportedTypes="RANGED_VALUE SHORT_TEXT EMPTY" isCustomizable="TRUE">
|
||||
<DefaultProviderPolicy defaultSystemProvider="EMPTY" defaultSystemProviderType="EMPTY" primaryProvider="kr.o2o.nalssigak/kr.o2o.nalssigak.Rank5ComplicationService" primaryProviderType="RANGED_VALUE"/>
|
||||
<BoundingOval x="0" y="0" width="68" height="68"/>
|
||||
<Complication type="RANGED_VALUE">
|
||||
<PartDraw x="0" y="0" width="68" height="68"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="68" height="68"><Fill color="#B8FFFFFF"/></Ellipse>
|
||||
</PartDraw>
|
||||
<PartDraw x="3" y="3" width="62" height="62"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Arc centerX="31.0" centerY="31.0" width="62" height="62" startAngle="0" endAngle="360"><Stroke thickness="5" color="#FFD9E5F4"/></Arc>
|
||||
<Arc centerX="31.0" centerY="31.0" width="62" height="62" startAngle="0" endAngle="360"><Stroke thickness="5" color="#FFFF7A45" cap="ROUND"/>
|
||||
<Transform target="endAngle" value="clamp([COMPLICATION.RANGED_VALUE_VALUE], [COMPLICATION.RANGED_VALUE_MIN], [COMPLICATION.RANGED_VALUE_MAX]) / ([COMPLICATION.RANGED_VALUE_MAX] - [COMPLICATION.RANGED_VALUE_MIN]) * 360"/>
|
||||
</Arc>
|
||||
</PartDraw>
|
||||
<Condition><Expressions><Expression name="i0"><![CDATA[[COMPLICATION.TITLE] == "야장각"]]></Expression><Expression name="i1"><![CDATA[[COMPLICATION.TITLE] == "피크닉각"]]></Expression><Expression name="i2"><![CDATA[[COMPLICATION.TITLE] == "치맥각"]]></Expression><Expression name="i3"><![CDATA[[COMPLICATION.TITLE] == "산책각"]]></Expression><Expression name="i4"><![CDATA[[COMPLICATION.TITLE] == "환기각"]]></Expression><Expression name="i5"><![CDATA[[COMPLICATION.TITLE] == "등산각"]]></Expression><Expression name="i6"><![CDATA[[COMPLICATION.TITLE] == "세차각"]]></Expression><Expression name="i7"><![CDATA[[COMPLICATION.TITLE] == "캠핑각"]]></Expression><Expression name="i8"><![CDATA[[COMPLICATION.TITLE] == "러닝각"]]></Expression><Expression name="i9"><![CDATA[[COMPLICATION.TITLE] == "별보기각"]]></Expression><Expression name="i10"><![CDATA[[COMPLICATION.TITLE] == "짬뽕각"]]></Expression><Expression name="i11"><![CDATA[[COMPLICATION.TITLE] == "막걸리각"]]></Expression><Expression name="i12"><![CDATA[[COMPLICATION.TITLE] == "뜨아각"]]></Expression><Expression name="i13"><![CDATA[[COMPLICATION.TITLE] == "빨래각"]]></Expression><Expression name="i14"><![CDATA[[COMPLICATION.TITLE] == "자전거각"]]></Expression><Expression name="i15"><![CDATA[[COMPLICATION.TITLE] == "멍뭉산책각"]]></Expression><Expression name="i16"><![CDATA[[COMPLICATION.TITLE] == "김서림각"]]></Expression><Expression name="i17"><![CDATA[[COMPLICATION.TITLE] == "화장붕괴각"]]></Expression><Expression name="i18"><![CDATA[[COMPLICATION.TITLE] == "냉면각"]]></Expression><Expression name="i19"><![CDATA[[COMPLICATION.TITLE] == "택시대란각"]]></Expression><Expression name="i20"><![CDATA[[COMPLICATION.TITLE] == "배달폭주각"]]></Expression><Expression name="i21"><![CDATA[[COMPLICATION.TITLE] == "가드닝각"]]></Expression><Expression name="i22"><![CDATA[[COMPLICATION.TITLE] == "사진산책각"]]></Expression><Expression name="i23"><![CDATA[[COMPLICATION.TITLE] == "야구각"]]></Expression><Expression name="i24"><![CDATA[[COMPLICATION.TITLE] == "공부각"]]></Expression><Expression name="i25"><![CDATA[[COMPLICATION.TITLE] == "넷플릭스각"]]></Expression><Expression name="i26"><![CDATA[[COMPLICATION.TITLE] == "군밤각"]]></Expression></Expressions><Compare expression="i0"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_yajang"/></PartImage></Compare><Compare expression="i1"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_picnic"/></PartImage></Compare><Compare expression="i2"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_chimaek"/></PartImage></Compare><Compare expression="i3"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_walk"/></PartImage></Compare><Compare expression="i4"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_vent"/></PartImage></Compare><Compare expression="i5"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_hiking"/></PartImage></Compare><Compare expression="i6"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_carwash"/></PartImage></Compare><Compare expression="i7"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_camping"/></PartImage></Compare><Compare expression="i8"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_running"/></PartImage></Compare><Compare expression="i9"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_stars"/></PartImage></Compare><Compare expression="i10"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_jjamppong"/></PartImage></Compare><Compare expression="i11"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_makgeolli"/></PartImage></Compare><Compare expression="i12"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_iced_hot"/></PartImage></Compare><Compare expression="i13"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_laundry"/></PartImage></Compare><Compare expression="i14"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_bike"/></PartImage></Compare><Compare expression="i15"><PartImage x="20" y="9" width="28" height="28">Line truncated
|
||||
<PartText x="0" y="35" width="68" height="24"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Text align="CENTER" ellipsis="TRUE"><Font family="bagel_fat_one" size="18" color="#FF28304A"><Template><![CDATA[%s]]><Parameter expression="[COMPLICATION.TEXT]"/></Template></Font></Text>
|
||||
</PartText>
|
||||
</Complication>
|
||||
<Complication type="SHORT_TEXT">
|
||||
<PartDraw x="0" y="0" width="68" height="68"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="68" height="68"><Fill color="#B8FFFFFF"/></Ellipse>
|
||||
</PartDraw>
|
||||
<PartText x="0" y="22" width="68" height="24"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Text align="CENTER" ellipsis="TRUE"><Font family="bagel_fat_one" size="18" color="#FF28304A"><Template><![CDATA[%s]]><Parameter expression="[COMPLICATION.TEXT]"/></Template></Font></Text>
|
||||
</PartText>
|
||||
</Complication>
|
||||
<Complication type="EMPTY"/>
|
||||
</ComplicationSlot><ComplicationSlot slotId="5" x="43" y="201" width="68" height="68" displayName="slot_ring" supportedTypes="RANGED_VALUE SHORT_TEXT EMPTY" isCustomizable="TRUE">
|
||||
<DefaultProviderPolicy defaultSystemProvider="EMPTY" defaultSystemProviderType="EMPTY" primaryProvider="kr.o2o.nalssigak/kr.o2o.nalssigak.Rank6ComplicationService" primaryProviderType="RANGED_VALUE"/>
|
||||
<BoundingOval x="0" y="0" width="68" height="68"/>
|
||||
<Complication type="RANGED_VALUE">
|
||||
<PartDraw x="0" y="0" width="68" height="68"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="68" height="68"><Fill color="#B8FFFFFF"/></Ellipse>
|
||||
</PartDraw>
|
||||
<PartDraw x="3" y="3" width="62" height="62"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Arc centerX="31.0" centerY="31.0" width="62" height="62" startAngle="0" endAngle="360"><Stroke thickness="5" color="#FFD9E5F4"/></Arc>
|
||||
<Arc centerX="31.0" centerY="31.0" width="62" height="62" startAngle="0" endAngle="360"><Stroke thickness="5" color="#FFFF7A45" cap="ROUND"/>
|
||||
<Transform target="endAngle" value="clamp([COMPLICATION.RANGED_VALUE_VALUE], [COMPLICATION.RANGED_VALUE_MIN], [COMPLICATION.RANGED_VALUE_MAX]) / ([COMPLICATION.RANGED_VALUE_MAX] - [COMPLICATION.RANGED_VALUE_MIN]) * 360"/>
|
||||
</Arc>
|
||||
</PartDraw>
|
||||
<Condition><Expressions><Expression name="i0"><![CDATA[[COMPLICATION.TITLE] == "야장각"]]></Expression><Expression name="i1"><![CDATA[[COMPLICATION.TITLE] == "피크닉각"]]></Expression><Expression name="i2"><![CDATA[[COMPLICATION.TITLE] == "치맥각"]]></Expression><Expression name="i3"><![CDATA[[COMPLICATION.TITLE] == "산책각"]]></Expression><Expression name="i4"><![CDATA[[COMPLICATION.TITLE] == "환기각"]]></Expression><Expression name="i5"><![CDATA[[COMPLICATION.TITLE] == "등산각"]]></Expression><Expression name="i6"><![CDATA[[COMPLICATION.TITLE] == "세차각"]]></Expression><Expression name="i7"><![CDATA[[COMPLICATION.TITLE] == "캠핑각"]]></Expression><Expression name="i8"><![CDATA[[COMPLICATION.TITLE] == "러닝각"]]></Expression><Expression name="i9"><![CDATA[[COMPLICATION.TITLE] == "별보기각"]]></Expression><Expression name="i10"><![CDATA[[COMPLICATION.TITLE] == "짬뽕각"]]></Expression><Expression name="i11"><![CDATA[[COMPLICATION.TITLE] == "막걸리각"]]></Expression><Expression name="i12"><![CDATA[[COMPLICATION.TITLE] == "뜨아각"]]></Expression><Expression name="i13"><![CDATA[[COMPLICATION.TITLE] == "빨래각"]]></Expression><Expression name="i14"><![CDATA[[COMPLICATION.TITLE] == "자전거각"]]></Expression><Expression name="i15"><![CDATA[[COMPLICATION.TITLE] == "멍뭉산책각"]]></Expression><Expression name="i16"><![CDATA[[COMPLICATION.TITLE] == "김서림각"]]></Expression><Expression name="i17"><![CDATA[[COMPLICATION.TITLE] == "화장붕괴각"]]></Expression><Expression name="i18"><![CDATA[[COMPLICATION.TITLE] == "냉면각"]]></Expression><Expression name="i19"><![CDATA[[COMPLICATION.TITLE] == "택시대란각"]]></Expression><Expression name="i20"><![CDATA[[COMPLICATION.TITLE] == "배달폭주각"]]></Expression><Expression name="i21"><![CDATA[[COMPLICATION.TITLE] == "가드닝각"]]></Expression><Expression name="i22"><![CDATA[[COMPLICATION.TITLE] == "사진산책각"]]></Expression><Expression name="i23"><![CDATA[[COMPLICATION.TITLE] == "야구각"]]></Expression><Expression name="i24"><![CDATA[[COMPLICATION.TITLE] == "공부각"]]></Expression><Expression name="i25"><![CDATA[[COMPLICATION.TITLE] == "넷플릭스각"]]></Expression><Expression name="i26"><![CDATA[[COMPLICATION.TITLE] == "군밤각"]]></Expression></Expressions><Compare expression="i0"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_yajang"/></PartImage></Compare><Compare expression="i1"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_picnic"/></PartImage></Compare><Compare expression="i2"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_chimaek"/></PartImage></Compare><Compare expression="i3"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_walk"/></PartImage></Compare><Compare expression="i4"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_vent"/></PartImage></Compare><Compare expression="i5"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_hiking"/></PartImage></Compare><Compare expression="i6"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_carwash"/></PartImage></Compare><Compare expression="i7"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_camping"/></PartImage></Compare><Compare expression="i8"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_running"/></PartImage></Compare><Compare expression="i9"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_stars"/></PartImage></Compare><Compare expression="i10"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_jjamppong"/></PartImage></Compare><Compare expression="i11"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_makgeolli"/></PartImage></Compare><Compare expression="i12"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_iced_hot"/></PartImage></Compare><Compare expression="i13"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_laundry"/></PartImage></Compare><Compare expression="i14"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_bike"/></PartImage></Compare><Compare expression="i15"><PartImage x="20" y="9" width="28" height="28">Line truncated
|
||||
<PartText x="0" y="35" width="68" height="24"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Text align="CENTER" ellipsis="TRUE"><Font family="bagel_fat_one" size="18" color="#FF28304A"><Template><![CDATA[%s]]><Parameter expression="[COMPLICATION.TEXT]"/></Template></Font></Text>
|
||||
</PartText>
|
||||
</Complication>
|
||||
<Complication type="SHORT_TEXT">
|
||||
<PartDraw x="0" y="0" width="68" height="68"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="68" height="68"><Fill color="#B8FFFFFF"/></Ellipse>
|
||||
</PartDraw>
|
||||
<PartText x="0" y="22" width="68" height="24"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Text align="CENTER" ellipsis="TRUE"><Font family="bagel_fat_one" size="18" color="#FF28304A"><Template><![CDATA[%s]]><Parameter expression="[COMPLICATION.TEXT]"/></Template></Font></Text>
|
||||
</PartText>
|
||||
</Complication>
|
||||
<Complication type="EMPTY"/>
|
||||
</ComplicationSlot><ComplicationSlot slotId="6" x="339" y="201" width="68" height="68" displayName="slot_ring" supportedTypes="RANGED_VALUE SHORT_TEXT EMPTY" isCustomizable="TRUE">
|
||||
<DefaultProviderPolicy defaultSystemProvider="EMPTY" defaultSystemProviderType="EMPTY" primaryProvider="kr.o2o.nalssigak/kr.o2o.nalssigak.Rank7ComplicationService" primaryProviderType="RANGED_VALUE"/>
|
||||
<BoundingOval x="0" y="0" width="68" height="68"/>
|
||||
<Complication type="RANGED_VALUE">
|
||||
<PartDraw x="0" y="0" width="68" height="68"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="68" height="68"><Fill color="#B8FFFFFF"/></Ellipse>
|
||||
</PartDraw>
|
||||
<PartDraw x="3" y="3" width="62" height="62"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Arc centerX="31.0" centerY="31.0" width="62" height="62" startAngle="0" endAngle="360"><Stroke thickness="5" color="#FFD9E5F4"/></Arc>
|
||||
<Arc centerX="31.0" centerY="31.0" width="62" height="62" startAngle="0" endAngle="360"><Stroke thickness="5" color="#FFFF7A45" cap="ROUND"/>
|
||||
<Transform target="endAngle" value="clamp([COMPLICATION.RANGED_VALUE_VALUE], [COMPLICATION.RANGED_VALUE_MIN], [COMPLICATION.RANGED_VALUE_MAX]) / ([COMPLICATION.RANGED_VALUE_MAX] - [COMPLICATION.RANGED_VALUE_MIN]) * 360"/>
|
||||
</Arc>
|
||||
</PartDraw>
|
||||
<Condition><Expressions><Expression name="i0"><![CDATA[[COMPLICATION.TITLE] == "야장각"]]></Expression><Expression name="i1"><![CDATA[[COMPLICATION.TITLE] == "피크닉각"]]></Expression><Expression name="i2"><![CDATA[[COMPLICATION.TITLE] == "치맥각"]]></Expression><Expression name="i3"><![CDATA[[COMPLICATION.TITLE] == "산책각"]]></Expression><Expression name="i4"><![CDATA[[COMPLICATION.TITLE] == "환기각"]]></Expression><Expression name="i5"><![CDATA[[COMPLICATION.TITLE] == "등산각"]]></Expression><Expression name="i6"><![CDATA[[COMPLICATION.TITLE] == "세차각"]]></Expression><Expression name="i7"><![CDATA[[COMPLICATION.TITLE] == "캠핑각"]]></Expression><Expression name="i8"><![CDATA[[COMPLICATION.TITLE] == "러닝각"]]></Expression><Expression name="i9"><![CDATA[[COMPLICATION.TITLE] == "별보기각"]]></Expression><Expression name="i10"><![CDATA[[COMPLICATION.TITLE] == "짬뽕각"]]></Expression><Expression name="i11"><![CDATA[[COMPLICATION.TITLE] == "막걸리각"]]></Expression><Expression name="i12"><![CDATA[[COMPLICATION.TITLE] == "뜨아각"]]></Expression><Expression name="i13"><![CDATA[[COMPLICATION.TITLE] == "빨래각"]]></Expression><Expression name="i14"><![CDATA[[COMPLICATION.TITLE] == "자전거각"]]></Expression><Expression name="i15"><![CDATA[[COMPLICATION.TITLE] == "멍뭉산책각"]]></Expression><Expression name="i16"><![CDATA[[COMPLICATION.TITLE] == "김서림각"]]></Expression><Expression name="i17"><![CDATA[[COMPLICATION.TITLE] == "화장붕괴각"]]></Expression><Expression name="i18"><![CDATA[[COMPLICATION.TITLE] == "냉면각"]]></Expression><Expression name="i19"><![CDATA[[COMPLICATION.TITLE] == "택시대란각"]]></Expression><Expression name="i20"><![CDATA[[COMPLICATION.TITLE] == "배달폭주각"]]></Expression><Expression name="i21"><![CDATA[[COMPLICATION.TITLE] == "가드닝각"]]></Expression><Expression name="i22"><![CDATA[[COMPLICATION.TITLE] == "사진산책각"]]></Expression><Expression name="i23"><![CDATA[[COMPLICATION.TITLE] == "야구각"]]></Expression><Expression name="i24"><![CDATA[[COMPLICATION.TITLE] == "공부각"]]></Expression><Expression name="i25"><![CDATA[[COMPLICATION.TITLE] == "넷플릭스각"]]></Expression><Expression name="i26"><![CDATA[[COMPLICATION.TITLE] == "군밤각"]]></Expression></Expressions><Compare expression="i0"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_yajang"/></PartImage></Compare><Compare expression="i1"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_picnic"/></PartImage></Compare><Compare expression="i2"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_chimaek"/></PartImage></Compare><Compare expression="i3"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_walk"/></PartImage></Compare><Compare expression="i4"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_vent"/></PartImage></Compare><Compare expression="i5"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_hiking"/></PartImage></Compare><Compare expression="i6"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_carwash"/></PartImage></Compare><Compare expression="i7"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_camping"/></PartImage></Compare><Compare expression="i8"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_running"/></PartImage></Compare><Compare expression="i9"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_stars"/></PartImage></Compare><Compare expression="i10"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_jjamppong"/></PartImage></Compare><Compare expression="i11"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_makgeolli"/></PartImage></Compare><Compare expression="i12"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_iced_hot"/></PartImage></Compare><Compare expression="i13"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_laundry"/></PartImage></Compare><Compare expression="i14"><PartImage x="20" y="9" width="28" height="28"><Variant mode="AMBIENT" target="alpha" value="0"/><Image resource="e_bike"/></PartImage></Compare><Compare expression="i15"><PartImage x="20" y="9" width="28" height="28">Line truncated
|
||||
<PartText x="0" y="35" width="68" height="24"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Text align="CENTER" ellipsis="TRUE"><Font family="bagel_fat_one" size="18" color="#FF28304A"><Template><![CDATA[%s]]><Parameter expression="[COMPLICATION.TEXT]"/></Template></Font></Text>
|
||||
</PartText>
|
||||
</Complication>
|
||||
<Complication type="SHORT_TEXT">
|
||||
<PartDraw x="0" y="0" width="68" height="68"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Ellipse x="0" y="0" width="68" height="68"><Fill color="#B8FFFFFF"/></Ellipse>
|
||||
</PartDraw>
|
||||
<PartText x="0" y="22" width="68" height="24"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Text align="CENTER" ellipsis="TRUE"><Font family="bagel_fat_one" size="18" color="#FF28304A"><Template><![CDATA[%s]]><Parameter expression="[COMPLICATION.TEXT]"/></Template></Font></Text>
|
||||
</PartText>
|
||||
</Complication>
|
||||
<Complication type="EMPTY"/>
|
||||
</ComplicationSlot>
|
||||
<PartDraw x="140" y="378" width="170" height="36"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<RoundRectangle x="0" y="0" width="170" height="36" cornerRadiusX="18" cornerRadiusY="18"><Fill color="#B8FFFFFF"/></RoundRectangle>
|
||||
<RoundRectangle x="0" y="31" width="170" height="5" cornerRadiusX="2" cornerRadiusY="2"><Fill color="#E6D9E5F4"/></RoundRectangle>
|
||||
</PartDraw>
|
||||
<PartText x="140" y="380" width="170" height="30"><Variant mode="AMBIENT" target="alpha" value="0"/>
|
||||
<Text align="CENTER"><Font family="jua" size="19" color="#FF28304A"><Template><![CDATA[%d월 %d일 %s요일]]><Parameter expression="[MONTH]"/><Parameter expression="[DAY]"/><Parameter expression="[DAY_OF_WEEK] == 1 ? "일" : [DAY_OF_WEEK] == 2 ? "월" : [DAY_OF_WEEK] == 3 ? "화" : [DAY_OF_WEEK] == 4 ? "수" : [DAY_OF_WEEK] == 5 ? "목" : [DAY_OF_WEEK] == 6 ? "금" : "토""/></Template></Font></Text>
|
||||
</PartText>
|
||||
</Scene>
|
||||
</WatchFace>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="watch_face_name">날씨각</string>
|
||||
<string name="slot_rank1">오늘 1위 각</string>
|
||||
<string name="slot_ring">둘레 각</string>
|
||||
<string name="slot_precip">비·눈</string>
|
||||
</resources>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<WatchFaceInfo>
|
||||
<Preview value="@drawable/preview" />
|
||||
<Editable value="true" />
|
||||
</WatchFaceInfo>
|
||||