mirror of
https://github.com/sartoopjj/thefeed.git
synced 2026-05-19 06:14:35 +03:00
fix
This commit is contained in:
@@ -823,9 +823,9 @@
|
||||
text-overflow: ellipsis
|
||||
}
|
||||
|
||||
.preset-btn svg {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
.preset-btn .preset-icon {
|
||||
font-size: 28px;
|
||||
line-height: 1;
|
||||
flex-shrink: 0
|
||||
}
|
||||
|
||||
@@ -2536,28 +2536,17 @@
|
||||
}
|
||||
|
||||
// ===== ANDROID SETTINGS =====
|
||||
var _presetIcons = {
|
||||
weather: '<svg viewBox="0 0 32 32" fill="none"><circle cx="16" cy="14" r="6" fill="#f39c12"/><path d="M16 4v3M16 21v3M6 14H3M29 14h-3M8.1 6.1l2.1 2.1M21.8 20.8l2.1 2.1M8.1 21.9l2.1-2.1M21.8 7.2l2.1-2.1" stroke="#f39c12" stroke-width="2" stroke-linecap="round"/><path d="M22 22c0-3.3 2.7-6 6-6a5 5 0 01-1 10H10a4 4 0 010-8c.3-2.8 2.6-5 5.5-5 2.4 0 4.4 1.5 5.2 3.6" stroke="#bdc3c7" stroke-width="1.5" fill="rgba(189,195,199,.2)"/></svg>',
|
||||
calculator: '<svg viewBox="0 0 32 32" fill="none"><rect x="6" y="3" width="20" height="26" rx="3" fill="#2c3e50" stroke="#7f8c8d" stroke-width="1"/><rect x="9" y="6" width="14" height="6" rx="1.5" fill="#1abc9c"/><circle cx="11.5" cy="16.5" r="1.5" fill="#ecf0f1"/><circle cx="16" cy="16.5" r="1.5" fill="#ecf0f1"/><circle cx="20.5" cy="16.5" r="1.5" fill="#ecf0f1"/><circle cx="11.5" cy="21" r="1.5" fill="#ecf0f1"/><circle cx="16" cy="21" r="1.5" fill="#ecf0f1"/><circle cx="20.5" cy="21" r="1.5" fill="#e74c3c"/><circle cx="11.5" cy="25.5" r="1.5" fill="#ecf0f1"/><rect x="14.5" y="24" width="7.5" height="3" rx="1.5" fill="#3498db"/></svg>',
|
||||
calendar: '<svg viewBox="0 0 32 32" fill="none"><rect x="4" y="6" width="24" height="22" rx="3" fill="#e74c3c"/><rect x="4" y="12" width="24" height="16" rx="0" fill="#ecf0f1"/><rect x="10" y="3" width="2" height="6" rx="1" fill="#7f8c8d"/><rect x="20" y="3" width="2" height="6" rx="1" fill="#7f8c8d"/><rect x="12" y="16" width="3" height="3" rx=".5" fill="#bdc3c7"/><rect x="17" y="16" width="3" height="3" rx=".5" fill="#bdc3c7"/><rect x="12" y="21" width="3" height="3" rx=".5" fill="#2c3e50"/><rect x="17" y="21" width="3" height="3" rx=".5" fill="#bdc3c7"/></svg>',
|
||||
notes: '<svg viewBox="0 0 32 32" fill="none"><rect x="6" y="3" width="20" height="26" rx="2" fill="#f1c40f"/><line x1="10" y1="10" x2="22" y2="10" stroke="#7f6c00" stroke-width="1.5" stroke-linecap="round"/><line x1="10" y1="14" x2="22" y2="14" stroke="#7f6c00" stroke-width="1.5" stroke-linecap="round"/><line x1="10" y1="18" x2="18" y2="18" stroke="#7f6c00" stroke-width="1.5" stroke-linecap="round"/></svg>',
|
||||
clock: '<svg viewBox="0 0 32 32" fill="none"><circle cx="16" cy="16" r="13" fill="#2c3e50" stroke="#ecf0f1" stroke-width="1.5"/><circle cx="16" cy="16" r="11" fill="#1a1a2e"/><line x1="16" y1="16" x2="16" y2="8" stroke="#ecf0f1" stroke-width="2" stroke-linecap="round"/><line x1="16" y1="16" x2="22" y2="16" stroke="#e74c3c" stroke-width="1.5" stroke-linecap="round"/><circle cx="16" cy="16" r="1.5" fill="#ecf0f1"/></svg>',
|
||||
camera: '<svg viewBox="0 0 32 32" fill="none"><rect x="3" y="9" width="26" height="18" rx="3" fill="#2c3e50"/><path d="M11 9l1.5-4h7L21 9" fill="#34495e"/><circle cx="16" cy="18" r="5.5" stroke="#ecf0f1" stroke-width="2" fill="none"/><circle cx="16" cy="18" r="3" fill="#3498db"/><circle cx="24" cy="13" r="1.5" fill="#e74c3c"/></svg>',
|
||||
compass: '<svg viewBox="0 0 32 32" fill="none"><circle cx="16" cy="16" r="13" fill="#2c3e50" stroke="#7f8c8d" stroke-width="1"/><circle cx="16" cy="16" r="11" fill="#1a252f"/><polygon points="16,6 18,15 16,17 14,15" fill="#e74c3c"/><polygon points="16,26 14,17 16,15 18,17" fill="#ecf0f1"/><circle cx="16" cy="16" r="2" fill="#7f8c8d"/></svg>',
|
||||
gallery: '<svg viewBox="0 0 32 32" fill="none"><rect x="4" y="5" width="24" height="22" rx="3" fill="#2980b9"/><circle cx="12" cy="13" r="3" fill="#f1c40f"/><path d="M4 22l7-7 5 5 4-3 8 6v2a3 3 0 01-3 3H7a3 3 0 01-3-3v-3z" fill="#27ae60"/></svg>',
|
||||
recorder: '<svg viewBox="0 0 32 32" fill="none"><rect x="11" y="4" width="10" height="16" rx="5" fill="#e74c3c"/><path d="M8 18c0 4.4 3.6 8 8 8s8-3.6 8-8" stroke="#7f8c8d" stroke-width="2" fill="none" stroke-linecap="round"/><line x1="16" y1="26" x2="16" y2="30" stroke="#7f8c8d" stroke-width="2" stroke-linecap="round"/><line x1="12" y1="30" x2="20" y2="30" stroke="#7f8c8d" stroke-width="2" stroke-linecap="round"/></svg>',
|
||||
};
|
||||
var _presetNames = [
|
||||
{ key: 'thefeed', en: 'thefeed', fa: 'thefeed', icon: '' },
|
||||
{ key: 'weather', en: 'Weather', fa: 'آب و هوا', icon: 'weather' },
|
||||
{ key: 'calculator', en: 'Calculator', fa: 'ماشینحساب', icon: 'calculator' },
|
||||
{ key: 'calendar', en: 'Calendar', fa: 'تقویم', icon: 'calendar' },
|
||||
{ key: 'notes', en: 'Notes', fa: 'یادداشت', icon: 'notes' },
|
||||
{ key: 'clock', en: 'Clock', fa: 'ساعت', icon: 'clock' },
|
||||
{ key: 'camera', en: 'Camera', fa: 'دوربین', icon: 'camera' },
|
||||
{ key: 'compass', en: 'Compass', fa: 'قطبنما', icon: 'compass' },
|
||||
{ key: 'gallery', en: 'Gallery', fa: 'گالری', icon: 'gallery' },
|
||||
{ key: 'recorder', en: 'Recorder', fa: 'ضبط صدا', icon: 'recorder' },
|
||||
{ key: 'thefeed', en: 'thefeed', fa: 'thefeed', icon: '\uD83D\uDCE1' },
|
||||
{ key: 'weather', en: 'Weather', fa: '\u0622\u0628 \u0648 \u0647\u0648\u0627', icon: '\u2600\uFE0F' },
|
||||
{ key: 'calculator', en: 'Calculator', fa: '\u0645\u0627\u0634\u06CC\u0646\u200C\u062D\u0633\u0627\u0628', icon: '\uD83D\uDDA9' },
|
||||
{ key: 'calendar', en: 'Calendar', fa: '\u062A\u0642\u0648\u06CC\u0645', icon: '\uD83D\uDCC5' },
|
||||
{ key: 'notes', en: 'Notes', fa: '\u06CC\u0627\u062F\u062F\u0627\u0634\u062A', icon: '\uD83D\uDCDD' },
|
||||
{ key: 'clock', en: 'Clock', fa: '\u0633\u0627\u0639\u062A', icon: '\uD83D\uDD70\uFE0F' },
|
||||
{ key: 'camera', en: 'Camera', fa: '\u062F\u0648\u0631\u0628\u06CC\u0646', icon: '\uD83D\uDCF7' },
|
||||
{ key: 'compass', en: 'Compass', fa: '\u0642\u0637\u0628\u200C\u0646\u0645\u0627', icon: '\uD83E\uDDED' },
|
||||
{ key: 'gallery', en: 'Gallery', fa: '\u06AF\u0627\u0644\u0631\u06CC', icon: '\uD83D\uDDBC\uFE0F' },
|
||||
{ key: 'recorder', en: 'Recorder', fa: '\u0636\u0628\u0637 \u0635\u062F\u0627', icon: '\uD83C\uDF99\uFE0F' },
|
||||
];
|
||||
|
||||
function initAndroidSettings() {
|
||||
@@ -2573,8 +2562,7 @@
|
||||
_presetNames.forEach(function (p) {
|
||||
var btn = document.createElement('button');
|
||||
btn.className = 'preset-btn' + (current === p.key ? ' active-preset' : '');
|
||||
var iconHtml = p.icon && _presetIcons[p.icon] ? _presetIcons[p.icon] : '<svg viewBox="0 0 32 32" fill="none"><rect x="4" y="4" width="24" height="24" rx="6" fill="var(--accent)"/><rect x="9" y="11" width="5" height="10" rx="1" fill="#fff"/><rect x="17" y="14" width="6" height="7" rx="1" fill="#fff"/></svg>';
|
||||
btn.innerHTML = iconHtml + '<span>' + (currentLang === 'fa' ? p.fa : p.en) + '</span>';
|
||||
btn.innerHTML = '<span class="preset-icon">' + p.icon + '<\/span><span>' + (currentLang === 'fa' ? p.fa : p.en) + '<\/span>';
|
||||
btn.onclick = function () { selectPresetName(p.key); };
|
||||
grid.appendChild(btn);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user