✨ feat(controlcenter): add flight mode and caffeine toggle functionality

This commit is contained in:
sankalp committed 2025-08-11 17:58:41 +05:45
1 parent c554b109f4
commit fccb44b208
6 files changed
+254 -20

No files matched your search

@@ -0,0 +1,13 @@
<svg width="24" height="24" version="1.1" xmlns="http://www.w3.org/2000/svg">
<defs>
<style id="current-color-scheme" type="text/css">
.ColorScheme-Text { color:#f2f2f2; } .ColorScheme-Highlight { color:#4285f4; }
</style>
</defs>
<g transform="translate(4,4)" class="ColorScheme-Text" fill="currentColor">
<path d="m1 7v3c0 3 2 5 5 5h2c3 0 4.76-1.566 4.959-4h0.541c1.5 0 1.5-1.5 1.5-1.5v-1c0-1.5-1.5-1.5-1.5-1.5h-0.5zm1 1h10v2c0 2.216-1.784 4-4 4h-2c-2.216 0-4-1.784-4-4zm11.5 0c0.5-0.032 0.516 0.531 0.516 0.531v1c0 0.469-0.516 0.469-0.516 0.469h-0.5l0.01-1.985z"/>
<path d="m7.193-1e-3c-1.098 1.385-1.428 2.066-1.032 2.948 0.36 0.798 1.288 1.205 0.821 3.052 0.767-0.9 1.376-2.042 0.774-2.964-0.612-0.938-0.948-1.508-0.563-3.036z" opacity=".35"/>
<path d="m4.193-1e-3c-1.098 1.385-1.428 2.066-1.032 2.948 0.36 0.798 1.288 1.205 0.821 3.052 0.767-0.9 1.376-2.042 0.774-2.964-0.612-0.938-0.948-1.508-0.563-3.036z" opacity=".35"/>
<path d="m10.193-1e-3c-1.098 1.385-1.428 2.066-1.032 2.948 0.36 0.798 1.288 1.205 0.821 3.052 0.767-0.9 1.376-2.042 0.774-2.964-0.612-0.938-0.948-1.508-0.563-3.036z" opacity=".35"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

@@ -0,0 +1,13 @@
<svg width="24" height="24" version="1.1" xmlns="http://www.w3.org/2000/svg">
<defs>
<style id="current-color-scheme" type="text/css">
.ColorScheme-Text { color:#f2f2f2; } .ColorScheme-Highlight { color:#4285f4; }
</style>
</defs>
<g transform="translate(4,4)" class="ColorScheme-Text" fill="currentColor">
<path d="m1 7v3c0 3 2 5 5 5h2c3 0 4.76-1.566 4.959-4h0.541c1.5 0 1.5-1.5 1.5-1.5v-1c0-1.5-1.5-1.5-1.5-1.5h-0.5zm1 1h10v2c0 2.216-1.784 4-4 4h-2c-2.216 0-4-1.784-4-4zm11.5 0c0.5-0.032 0.516 0.531 0.516 0.531v1c0 0.469-0.516 0.469-0.516 0.469h-0.5l0.01-1.985z"/>
<path d="m7.193-1e-3c-1.098 1.385-1.428 2.066-1.032 2.948 0.36 0.798 1.288 1.205 0.821 3.052 0.767-0.9 1.376-2.042 0.774-2.964-0.612-0.938-0.948-1.508-0.563-3.036z"/>
<path d="m4.193-1e-3c-1.098 1.385-1.428 2.066-1.032 2.948 0.36 0.798 1.288 1.205 0.821 3.052 0.767-0.9 1.376-2.042 0.774-2.964-0.612-0.938-0.948-1.508-0.563-3.036z"/>
<path d="m10.193-1e-3c-1.098 1.385-1.428 2.066-1.032 2.948 0.36 0.798 1.288 1.205 0.821 3.052 0.767-0.9 1.376-2.042 0.774-2.964-0.612-0.938-0.948-1.508-0.563-3.036z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

@@ -0,0 +1,12 @@
<svg width="22" height="22" version="1.1" xmlns="http://www.w3.org/2000/svg">
<defs>
<style id="current-color-scheme" type="text/css">.ColorScheme-Text {
color:#f2f2f2;
}
.ColorScheme-NegativeText{
color:#e74c3c;
}</style>
</defs>
<path class="ColorScheme-Text" d="m19.893 11c-0.0078-0.91918-1.262-1.6436-2.7965-1.6436h-3.2015c-0.43623 0-0.59984-0.0779-0.86466-0.36611l-5.2814-5.7098c-0.17137-0.18695-0.3739-0.28043-0.5998-0.28043h-1.0049c-0.20254 0-0.31937 0.18695-0.22591 0.39727l2.7342 5.9513-3.9961 0.444-1.4255-2.5394c-0.10906-0.19475-0.27264-0.28043-0.5297-0.28043h-0.35054c-0.21032 0-0.35053 0.14021-0.35053 0.35053v7.3534c0 0.21032 0.14022 0.35053 0.35053 0.35053h0.35054c0.25706 0 0.42064-0.0856 0.5297-0.28042l1.4255-2.5472 3.9961 0.45183-2.7342 5.9513c-0.09347 0.21031 0.02337 0.39732 0.22591 0.39732h1.0049c0.2259 0 0.42842-0.1013 0.5998-0.28042l5.2814-5.7098c0.26482-0.28822 0.42843-0.36613 0.86466-0.36613h3.2015c1.5345 0 2.7887-0.73225 2.7965-1.6436z" fill="currentColor" opacity=".35"/>
<rect class="ColorScheme-Text" transform="rotate(45)" x="4.5563" y="-.5" width="22" height="1" rx=".5" ry=".5" fill="currentColor"/>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

@@ -0,0 +1,8 @@
<svg width="22" height="22" version="1.1" xmlns="http://www.w3.org/2000/svg">
<defs>
<style id="current-color-scheme" type="text/css">.ColorScheme-Text {
color:#f2f2f2;
}</style>
</defs>
<path class="ColorScheme-Text" d="m19.893 11c-0.0078-0.91918-1.262-1.6436-2.7965-1.6436h-3.2015c-0.43623 0-0.59984-0.0779-0.86466-0.36611l-5.2814-5.7098c-0.17137-0.18695-0.3739-0.28043-0.5998-0.28043h-1.0049c-0.20254 0-0.31937 0.18695-0.22591 0.39727l2.7342 5.9513-3.9961 0.444-1.4255-2.5394c-0.10906-0.19475-0.27264-0.28043-0.5297-0.28043h-0.35054c-0.21032 0-0.35053 0.14021-0.35053 0.35053v7.3534c0 0.21032 0.14022 0.35053 0.35053 0.35053h0.35054c0.25706 0 0.42064-0.0856 0.5297-0.28042l1.4255-2.5472 3.9961 0.45183-2.7342 5.9513c-0.09347 0.21031 0.02337 0.39732 0.22591 0.39732h1.0049c0.2259 0 0.42842-0.1013 0.5998-0.28042l5.2814-5.7098c0.26482-0.28822 0.42843-0.36613 0.86466-0.36613h3.2015c1.5345 0 2.7887-0.73225 2.7965-1.6436z" fill="currentColor"/>
</svg>

After

Width:  |  Height:  |  Size: 971 B