diff --git a/index.html b/index.html index cef460c..3883e4e 100644 --- a/index.html +++ b/index.html @@ -31,7 +31,7 @@ font-weight: 500; color: #ffffff; display: flex; - justify-content: flex-end; + justify-content: space-between; align-items: Center; padding-left: 16px; padding-right: 16px; @@ -199,7 +199,12 @@ .topBarIcon { height: 36px; width: auto; - margin-right: 4px; + margin-left: 2px; + margin-right: 2px; + } + + #topBarAppIcons{ + height: 36px; } .heimu{ @@ -218,7 +223,7 @@ 朋友圈转发截图生成工具
info_outline - + 生成 +
+ +
+
+
+ +
+
+ +
+
+ +
+
+
@@ -518,17 +545,23 @@

开源就是好

请小透明喝一瓶肥宅快乐水~(*´∀`)


- 微信支付 + 长按二维码保存,然后微信扫一扫(`ε´ )
(微信支付)
@@ -705,9 +738,25 @@ var iconWifi = [4, 4, 4, 4, 4, 3, 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 0]; var iconSignal = [4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 2, 2, 2, 2, 1, 1, 0]; var iconBattery = [20, 30, 50, 60, 80, 90, 'full']; - document.getElementById('topBarIconWifi').src = 'mdicons/ic_signal_wifi_' + iconWifi[Math.floor(Math.random() * iconWifi.length)] + '_bar_48px.svg'; - document.getElementById('topBarIconSignal').src = 'mdicons/ic_signal_cellular_' + iconWifi[Math.floor(Math.random() * iconSignal.length)] + '_bar_48px.svg'; - document.getElementById('topBarIconBattery').src = 'mdicons/ic_battery_' + ((Math.random() > 0.75) ? 'charging_' : '') + iconBattery[Math.floor(Math.random() * iconBattery.length)] + '_48px.svg'; + if (document.getElementById('configTopBarStatusIcons').checked) { + document.getElementById('topBarIconWifi').src = 'mdicons/ic_signal_wifi_' + iconWifi[Math.floor(Math.random() * iconWifi.length)] + '_bar_48px.svg'; + document.getElementById('topBarIconSignal').src = 'mdicons/ic_signal_cellular_' + iconWifi[Math.floor(Math.random() * iconSignal.length)] + '_bar_48px.svg'; + document.getElementById('topBarIconBattery').src = 'mdicons/ic_battery_' + ((Math.random() > 0.75) ? 'charging_' : '') + iconBattery[Math.floor(Math.random() * iconBattery.length)] + '_48px.svg'; + } else { + document.getElementById('topBarIconWifi').src = 'mdicons/ic_signal_wifi_4_bar_48px.svg'; + document.getElementById('topBarIconSignal').src = 'mdicons/ic_signal_cellular_4_bar_48px.svg'; + document.getElementById('topBarIconBattery').src = 'mdicons/ic_battery_full_48px.svg'; + } + var iconApp = [['qq', .5], ['wechat', .5], ['cloudmusic', .25], ['coolapk', .15], ['tieba', .15], ['acfun', .15]]; + iconApp.sort(function () { return (Math.random() > .5) ? 1 : -1 }); + document.getElementById('topBarAppIcons').innerHTML = ''; + if (document.getElementById('configTopBarAppIcons').checked) { + for (var i = 0; i < iconApp.length; i++) { + if (Math.random() < iconApp[i][1]) { + document.getElementById('topBarAppIcons').innerHTML += ''; + } + } + } //设置时间 var configDate = document.getElementById('configDate').valueAsDate; diff --git a/mdicons/app_acfun.svg b/mdicons/app_acfun.svg new file mode 100644 index 0000000..e3080b4 --- /dev/null +++ b/mdicons/app_acfun.svg @@ -0,0 +1,10 @@ + + + + + + diff --git a/mdicons/app_cloudmusic.svg b/mdicons/app_cloudmusic.svg new file mode 100644 index 0000000..181df5a --- /dev/null +++ b/mdicons/app_cloudmusic.svg @@ -0,0 +1,25 @@ + + + + + + diff --git a/mdicons/app_coolapk.svg b/mdicons/app_coolapk.svg new file mode 100644 index 0000000..22e7693 --- /dev/null +++ b/mdicons/app_coolapk.svg @@ -0,0 +1,15 @@ + + + + + + diff --git a/mdicons/app_qq.svg b/mdicons/app_qq.svg new file mode 100644 index 0000000..1501e48 --- /dev/null +++ b/mdicons/app_qq.svg @@ -0,0 +1,13 @@ + + + + + + diff --git a/mdicons/app_tieba.svg b/mdicons/app_tieba.svg new file mode 100644 index 0000000..3e9a7bf --- /dev/null +++ b/mdicons/app_tieba.svg @@ -0,0 +1,20 @@ + + + + + + diff --git a/mdicons/app_wechat.svg b/mdicons/app_wechat.svg new file mode 100644 index 0000000..c9922d9 --- /dev/null +++ b/mdicons/app_wechat.svg @@ -0,0 +1,17 @@ + + + + + +