From ddccaf16f39a4bf710266edc389fcde124e7ef56 Mon Sep 17 00:00:00 2001
From: winter
Date: Thu, 23 Jan 2025 17:23:58 +0000
Subject: use icons-in-css instead of icon font
---
templates/actor_profile.php | 4 ++--
templates/head_tags.php | 1 -
templates/interaction_button.php | 9 ++++-----
templates/left_side_navigation.php | 6 +++---
templates/mobilepane_left.php | 2 +-
templates/mobilepane_right.php | 2 +-
templates/note.php | 24 ++++++++++++------------
templates/reason_reshared.php | 2 +-
templates/reply_button.php | 7 +++----
templates/side_navigation.php | 2 +-
templates/skeleton.php | 8 ++------
11 files changed, 30 insertions(+), 37 deletions(-)
(limited to 'templates')
diff --git a/templates/actor_profile.php b/templates/actor_profile.php
index fed8e3b..2947a72 100644
--- a/templates/actor_profile.php
+++ b/templates/actor_profile.php
@@ -19,8 +19,8 @@ $user = UserAccount::findByCurrentSession();
diff --git a/templates/head_tags.php b/templates/head_tags.php
index 66c706a..88ac6ff 100644
--- a/templates/head_tags.php
+++ b/templates/head_tags.php
@@ -1,6 +1,5 @@
-
diff --git a/templates/interaction_button.php b/templates/interaction_button.php
index 7315f7d..368cb1a 100644
--- a/templates/interaction_button.php
+++ b/templates/interaction_button.php
@@ -6,18 +6,17 @@ $tooltip = match ($action) {
'reshare' => __('note.action.reshare')
};
$icon = match ($action) {
- 'like' => 'favorite',
- 'dislike' => 'heart_broken',
- 'reshare' => $active ? 'repeat_on' : 'repeat'
+ 'like' => $active ? 'favorite' : 'favorite-outline',
+ 'dislike' => $active ? 'heart-broken' : 'heart-broken-outline',
+ 'reshare' => $active ? 'repeat-on' : 'repeat'
};
$id = "interactButton-$action-$note->id";
?>
- id/$action" ?>" hx-swap="outerHTML"
hx-target="closest .interactButtonContainer" hx-disabled-elt="this" id="= $id ?>"
_="on click wait 1s then trigger update on #liveTimelineUpdater" = ($disabled ?? false) ? 'disabled' : '' ?>>
- = $icon ?>
= $count ?? '' ?>
\ No newline at end of file
diff --git a/templates/left_side_navigation.php b/templates/left_side_navigation.php
index f03ee23..012cf23 100644
--- a/templates/left_side_navigation.php
+++ b/templates/left_side_navigation.php
@@ -8,17 +8,17 @@ $user = UserAccount::findByCurrentSession();
if ($user != null) {
$links = [[
'href' => '/followrequests',
- 'icon' => 'person_add',
+ 'icon' => 'person-add-outline',
'label' => __('navigation.followRequests'),
'unreadCount' => FollowRelation::countWhere("object = ? AND status = 'pending'", [$user->actor->id])
]];
if ($user->isAdmin) {
- $links[] = ['href' => '/admin/settings/instance', 'icon' => 'settings', 'label' => __('navigation.instanceSettings')];
+ $links[] = ['href' => '/admin/settings/instance', 'icon' => 'settings-outline', 'label' => __('navigation.instanceSettings')];
}
}
$links[] = [
'href' => '/about',
- 'icon' => 'info',
+ 'icon' => 'info-outline',
'label' => __('about.pageTitle')
];
if ($user != null) {
diff --git a/templates/mobilepane_left.php b/templates/mobilepane_left.php
index 7dccca3..753383a 100644
--- a/templates/mobilepane_left.php
+++ b/templates/mobilepane_left.php
@@ -16,7 +16,7 @@ $settings = GlobalSettings::getInstance();
- close
+
diff --git a/templates/mobilepane_right.php b/templates/mobilepane_right.php
index 4804f67..2a72c6e 100644
--- a/templates/mobilepane_right.php
+++ b/templates/mobilepane_right.php
@@ -19,7 +19,7 @@ $settings = GlobalSettings::getInstance();
- close
+
diff --git a/templates/note.php b/templates/note.php
index 3e978b9..d892656 100644
--- a/templates/note.php
+++ b/templates/note.php
@@ -32,23 +32,23 @@ if ($user != null) {
)
?>
- = match ($note->privacy->scope) {
- NotePrivacyScope::NONE => 'lock',
- NotePrivacyScope::MUTUALS => 'group',
- NotePrivacyScope::FOLLOWERS => 'groups',
- NotePrivacyScope::PUBLIC => 'public'
- } ?>
+
inReplyTo)): ?>