From 4234d39aa073947c9630133446532dc6ef7e3fb9 Mon Sep 17 00:00:00 2001
From: Arkerthan <arkerthan@mailbox.org>
Date: Fri, 20 Sep 2024 21:45:34 +0200
Subject: [PATCH] Port icons to SC 2.37.3

---
 css/art/genAI.css                      |  8 ++++----
 css/general/formatting.css             |  2 +-
 css/gui/accordion.css                  |  6 +++---
 css/gui/quicklinks.css                 | 10 +++++-----
 css/interaction/slaveInteract.css      |  4 ++--
 css/manage/budget.css                  |  6 +++---
 css/rulesAssistant/conditionEditor.css |  8 ++++----
 src/gui/favorite.js                    |  5 +++--
 src/gui/storyCaption.js                |  2 +-
 src/js/slaveListing.js                 |  2 +-
 10 files changed, 27 insertions(+), 26 deletions(-)

diff --git a/css/art/genAI.css b/css/art/genAI.css
index f575e748418..c13b959d1b2 100644
--- a/css/art/genAI.css
+++ b/css/art/genAI.css
@@ -116,13 +116,13 @@
 }
 
 .zoom-in::after {
-    font-family: "tme-fa-icons";
-	content: " \e83c"; /* Zoom in icon */
+    font-family: "sc-icons";
+	content: " \f00e"; /* Zoom in icon */
 }
 
 .refresh-icon::after {
-    font-family: "tme-fa-icons";
-	content: " \e825"; /* Refresh icon */
+    font-family: "sc-icons";
+	content: " \f2ea"; /* Refresh icon */
 }
 
 .lightbox {
diff --git a/css/general/formatting.css b/css/general/formatting.css
index 3eb42a3216d..57f7b0a265d 100644
--- a/css/general/formatting.css
+++ b/css/general/formatting.css
@@ -8,7 +8,7 @@
 }
 
 .icons {
-	font-family: 'tme-fa-icons';
+	font-family: 'sc-icons';
 }
 
 .story-label, .regularParties, .underline {
diff --git a/css/gui/accordion.css b/css/gui/accordion.css
index e42b80e57f3..4f77f195654 100644
--- a/css/gui/accordion.css
+++ b/css/gui/accordion.css
@@ -39,14 +39,14 @@ button.accordion:hover:not(.empty) {
 
 /* open/close symbol */
 button.accordion::before {
-	font-family: "tme-fa-icons";
+	font-family: "sc-icons";
 	position: absolute;
 	left: 10px;
-	content: "\e81c";
+	content: "\f078";
 }
 
 button.accordion.closed::before {
-	content: "\e81e";
+	content: "\f054";
 }
 
 button.accordion.empty::before {
diff --git a/css/gui/quicklinks.css b/css/gui/quicklinks.css
index 8026a69ecdc..bf148edcd91 100644
--- a/css/gui/quicklinks.css
+++ b/css/gui/quicklinks.css
@@ -18,14 +18,14 @@
 }
 
 .quick-links .toggle::before {
-	font-family: "tme-fa-icons";
+	font-family: "sc-icons";
 	position: absolute;
 	left: 5px;
-	content: "\e818";
+	content: "\f0d7";
 }
 
 .quick-links div.collapsed .toggle::before {
-	content: "\e81a";
+	content: "\f0da";
 }
 
 .quick-links div.content {
@@ -58,10 +58,10 @@
 .quick-links div.notification:not(.category)::after /* notification for entry */,
 .quick-links div.category.notification.collapsed > .toggle::after /* notification for category, disable when not collapsed */
 {
-	font-family: "tme-fa-icons";
+	font-family: "sc-icons";
 	position: absolute;
 	right: 5px;
 	top: 0;
-	content: "\e80c";
+	content: "\f06a";
 	color: yellow;
 }
diff --git a/css/interaction/slaveInteract.css b/css/interaction/slaveInteract.css
index 30f21dd02d1..19921bf4f99 100644
--- a/css/interaction/slaveInteract.css
+++ b/css/interaction/slaveInteract.css
@@ -31,7 +31,7 @@
 /* notification */
 a.with-note::after /*notification for links with notes in tooltips */
 {
-	font-family: "tme-fa-icons";
-	content: " \e80c";
+	font-family: "sc-icons";
+	content: " \f06a";
 	color: yellow;
 }
diff --git a/css/manage/budget.css b/css/manage/budget.css
index bbcfee4be92..8e6a496584b 100644
--- a/css/manage/budget.css
+++ b/css/manage/budget.css
@@ -94,8 +94,8 @@
 }
 
 .budget .accordion:nth-child(4n+1)::before {
-	font-family: "tme-fa-icons";
-	content: "\e81c";
+	font-family: "sc-icons";
+	content: "\f078";
 	position: absolute;
 	left: 0;
 	min-width: 30px;
@@ -105,6 +105,6 @@
 }
 
 .budget .accordion.closed:nth-child(4n+1)::before {
-	content: "\e81e";
+	content: "\f054";
 	border-bottom: none;
 }
diff --git a/css/rulesAssistant/conditionEditor.css b/css/rulesAssistant/conditionEditor.css
index cb22b6f72ae..5669a3e7fdd 100644
--- a/css/rulesAssistant/conditionEditor.css
+++ b/css/rulesAssistant/conditionEditor.css
@@ -34,8 +34,8 @@
 }
 
 .validation-error::before {
-    font-family: "tme-fa-icons";
-    content: "\e80d";
+    font-family: "sc-icons";
+    content: "\f071";
     color: red;
     margin-right: 4px;
 }
@@ -128,8 +128,8 @@
 }
 
 .rule-trash::before {
-    font-family: "tme-fa-icons";
-    content: "\e828";
+    font-family: "sc-icons";
+    content: "\f2ed";
 }
 
 .condition-custom {
diff --git a/src/gui/favorite.js b/src/gui/favorite.js
index 7a240339bf0..cd43db24306 100644
--- a/src/gui/favorite.js
+++ b/src/gui/favorite.js
@@ -10,7 +10,7 @@ App.UI.favoriteToggle = function(slave, handler) {
 	function favLink() {
 		const linkID = `fav-link-${slave.ID}`;
 		if (V.favorites.includes(slave.ID)) {
-			const link = App.UI.DOM.link(String.fromCharCode(0xe800), () => {
+			const link = App.UI.DOM.link("\uf005", () => {
 				V.favorites.delete(slave.ID);
 				$(`#${linkID}`).replaceWith(favLink());
 
@@ -22,7 +22,8 @@ App.UI.favoriteToggle = function(slave, handler) {
 			link.id = linkID;
 			return link;
 		} else {
-			const link = App.UI.DOM.link(String.fromCharCode(0xe801), () => {
+			// TODO: @Arkerthan empty star
+			const link = App.UI.DOM.link("\uf005", () => {
 				V.favorites.push(slave.ID);
 				$(`#${linkID}`).replaceWith(favLink());
 
diff --git a/src/gui/storyCaption.js b/src/gui/storyCaption.js
index 6a449f5f19d..015a2c8ff40 100644
--- a/src/gui/storyCaption.js
+++ b/src/gui/storyCaption.js
@@ -88,7 +88,7 @@ App.UI.StoryCaption.render = function() {
 
 		const reminders = App.UI.DOM.makeElement("span", App.UI.DOM.link("Reminders", () => App.Reminders.dialog()), null);
 		if (V.reminders.find(r => r.week <= V.week)) {
-			reminders.append(" ", App.UI.DOM.makeElement("span", String.fromCharCode(0xe80c), ["icons", "noteworthy"]));
+			reminders.append(" ", App.UI.DOM.makeElement("span", "\uf06a", ["icons", "noteworthy"]));
 		}
 		fragment.append(
 			App.UI.DOM.generateLinksStrip([
diff --git a/src/js/slaveListing.js b/src/js/slaveListing.js
index 22fb9f2bde7..90c5b939cd9 100644
--- a/src/js/slaveListing.js
+++ b/src/js/slaveListing.js
@@ -464,7 +464,7 @@ App.UI.SlaveList.SlaveInteract.stdInteract = function(slave, text) {
 
 	if (V.favorites.includes(slave.ID)) {
 		return App.UI.DOM.combineNodes(
-			App.UI.DOM.makeElement("span", String.fromCharCode(0xe800), ["icons", "favorite"]),
+			App.UI.DOM.makeElement("span", "\uf005", ["icons", "favorite"]),
 			" ", link);
 	}
 
-- 
GitLab