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();
isLocal): ?> - open_in_new +
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"; ?>
-
\ 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();
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) { ) ?> - privacy->scope) { - NotePrivacyScope::NONE => 'lock', - NotePrivacyScope::MUTUALS => 'group', - NotePrivacyScope::FOLLOWERS => 'groups', - NotePrivacyScope::PUBLIC => 'public' - } ?> + inReplyTo)): ?>
- reply + ' . htmlspecialchars($note->inReplyTo->author->displayName)) . '' ?> diff --git a/templates/reason_reshared.php b/templates/reason_reshared.php index 2c1e4c5..b382c6c 100644 --- a/templates/reason_reshared.php +++ b/templates/reason_reshared.php @@ -1,5 +1,5 @@
- repeat + getFullHandle(); diff --git a/templates/reply_button.php b/templates/reply_button.php index b86a21f..af36000 100644 --- a/templates/reply_button.php +++ b/templates/reply_button.php @@ -1,12 +1,11 @@ countReplies() > 0 ? 'reply_all' : 'reply'; +$icon = $note->countReplies() > 0 ? 'reply-all' : 'reply'; $id = "interactButton-reply-$note->id"; ?>
- +
\ No newline at end of file diff --git a/templates/side_navigation.php b/templates/side_navigation.php index 9b21833..94bff5e 100644 --- a/templates/side_navigation.php +++ b/templates/side_navigation.php @@ -2,7 +2,7 @@
  • > -
    +
    0) { call_template('unread_indicator', ['count' => $entry['unreadCount']]); diff --git a/templates/skeleton.php b/templates/skeleton.php index a7b6e95..a9c3424 100644 --- a/templates/skeleton.php +++ b/templates/skeleton.php @@ -18,9 +18,7 @@ $settings = GlobalSettings::getInstance();