Skip to content

Commit

Permalink
Improve Fonts Load
Browse files Browse the repository at this point in the history
  • Loading branch information
kemzops committed Mar 15, 2023
1 parent 97c0cf0 commit 15ba0f7
Show file tree
Hide file tree
Showing 23 changed files with 54 additions and 57 deletions.
1 change: 1 addition & 0 deletions src/pages/adhkar.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../public/css/fonts.css">
<link rel="stylesheet" id="variables_css">
<link rel="stylesheet" href="../public/css/barWindow.css">
<link rel="stylesheet" href="../public/css/adhkar.css">
Expand Down
1 change: 1 addition & 0 deletions src/pages/adhkar/evening.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../../public/css/fonts.css">
<link rel="stylesheet" id="variables_css">
<link rel="stylesheet" href="../../public/css/barWindow.css">
<link rel="stylesheet" href="../../public/css/pages_adhkar.css">
Expand Down
1 change: 1 addition & 0 deletions src/pages/adhkar/food.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../../public/css/fonts.css">
<link rel="stylesheet" id="variables_css">
<link rel="stylesheet" href="../../public/css/barWindow.css">
<link rel="stylesheet" href="../../public/css/pages_adhkar.css">
Expand Down
1 change: 1 addition & 0 deletions src/pages/adhkar/morning.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../../public/css/fonts.css">
<link rel="stylesheet" id="variables_css">
<link rel="stylesheet" href="../../public/css/barWindow.css">
<link rel="stylesheet" href="../../public/css/pages_adhkar.css">
Expand Down
1 change: 1 addition & 0 deletions src/pages/adhkar/prayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" id="variables_css">
<link rel="stylesheet" href="../../public/css/fonts.css">
<link rel="stylesheet" href="../../public/css/barWindow.css">
<link rel="stylesheet" href="../../public/css/pages_adhkar.css">
<link rel="stylesheet" href="../../public/css/animate.min.css">
Expand Down
1 change: 1 addition & 0 deletions src/pages/adhkar/sleeping.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../../public/css/fonts.css">
<link rel="stylesheet" id="variables_css">
<link rel="stylesheet" href="../../public/css/barWindow.css">
<link rel="stylesheet" href="../../public/css/pages_adhkar.css">
Expand Down
1 change: 1 addition & 0 deletions src/pages/adhkar/tasbih.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../../public/css/fonts.css">
<link rel="stylesheet" id="variables_css">
<link rel="stylesheet" href="../../public/css/barWindow.css">
<link rel="stylesheet" href="../../public/css/pages_adhkar.css">
Expand Down
1 change: 1 addition & 0 deletions src/pages/audio_window.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<html lang="en">

<head>
<link rel="stylesheet" href="../public/css/fonts.css">
<link rel="stylesheet" id="variables_css">
<link rel="stylesheet" href="../public/css/barWindow.css">
<link rel="stylesheet" href="../public/css/audio_window.css">
Expand Down
1 change: 1 addition & 0 deletions src/pages/hisnmuslim.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../public/css/fonts.css">
<link rel="stylesheet" id="variables_css">
<link rel="stylesheet" href="../public/css/barWindow.css">
<link rel="stylesheet" href="../public/css/hisnmuslim.css">
Expand Down
1 change: 1 addition & 0 deletions src/pages/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../public/css/fonts.css">
<link rel="stylesheet" id="variables_css">
<link rel="stylesheet" href="../public/css/barWindow.css">
<link rel="stylesheet" href="../public/css/home.css">
Expand Down
1 change: 1 addition & 0 deletions src/pages/info.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../public/css/fonts.css">
<link rel="stylesheet" id="variables_css">
<link rel="stylesheet" href="../public/css/barWindow.css">
<link rel="stylesheet" href="../public/css/info.css">
Expand Down
1 change: 1 addition & 0 deletions src/pages/prayer_time.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../public/css/fonts.css">
<link rel="stylesheet" id="variables_css">
<link rel="stylesheet" href="../public/css/barWindow.css">
<link rel="stylesheet" href="../public/css/prayer_time.css">
Expand Down
1 change: 1 addition & 0 deletions src/pages/quran.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../public/css/fonts.css">
<link rel="stylesheet" id="variables_css">
<link rel="stylesheet" href="../public/css/barWindow.css">
<link rel="stylesheet" href="../public/css/surah.css">
Expand Down
1 change: 1 addition & 0 deletions src/pages/quran_mp3.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../public/css/fonts.css">
<link rel="stylesheet" id="variables_css">
<link rel="stylesheet" href="../public/css/barWindow.css">
<link rel="stylesheet" href="../public/css/quran_mp3.css">
Expand Down
1 change: 1 addition & 0 deletions src/pages/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../public/css/fonts.css">
<link rel="stylesheet" id="variables_css">
<link rel="stylesheet" href="../public/css/barWindow.css">
<link rel="stylesheet" href="../public/css/settings.css">
Expand Down
1 change: 1 addition & 0 deletions src/pages/surah.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../public/css/fonts.css">
<link rel="stylesheet" id="variables_css">
<link rel="stylesheet" href="../public/css/barWindow.css">
<link rel="stylesheet" href="../public/css/surah.css">
Expand Down
1 change: 1 addition & 0 deletions src/pages/tray_window.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<head>
<title>التقوى</title>
<link rel="stylesheet" href="../public/css/fonts.css">
<link rel="stylesheet" id="variables_css">
<link rel="stylesheet" href="../public/css/tray_window.css">
<link rel="stylesheet" href="../public/css/animate.min.css">
Expand Down
2 changes: 1 addition & 1 deletion src/preload/preload_modules/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ module.exports = function settings(fs, path, App_Path, settings, ipcRenderer) {

if (lastVersion === version?.currentRelease) {

alert_settings_title.innerText = "انت على آخر إصدار من تطبيق التقوى"
alert_settings_title.innerText = "لديك بالفعل آخر إصدار من تطبيق التقوى"
alert_settings_icon.src = "../public/icon/x.png"
app_current_version.innerText = version?.currentRelease
app_latest_version.innerText = lastVersion
Expand Down
7 changes: 0 additions & 7 deletions src/public/css/audio_window.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
@font-face {
font-family: "Vazirmatn-Regular";
src: url(../font/Vazirmatn-Regular.ttf) format("truetype");
}



html,
body {
background-color: var(--background_body);
Expand Down
30 changes: 0 additions & 30 deletions src/public/css/barWindow.css
Original file line number Diff line number Diff line change
@@ -1,33 +1,3 @@
@font-face {
font-family: "Vazirmatn-Bold";
src: url(../font/Vazirmatn-Bold.ttf) format("truetype");
}

@font-face {
font-family: "Vazirmatn-ExtraLight";
src: url(../font/Vazirmatn-ExtraLight.ttf) format("truetype");
}

@font-face {
font-family: "Vazirmatn-Medium";
src: url(../font/Vazirmatn-Medium.ttf) format("truetype");
}

@font-face {
font-family: "Vazirmatn-Regular";
src: url(../font/Vazirmatn-Regular.ttf) format("truetype");
}

@font-face {
font-family: "Quran";
src: url(../font/Quran.ttf) format("truetype");
}

@font-face {
font-family: "Quran_Bold";
src: url(../font/Quran_Bold.ttf) format("truetype");
}

html,
body {
background-color: var(--background_body);
Expand Down
36 changes: 36 additions & 0 deletions src/public/css/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
:root {
--font_default: "Vazirmatn-Regular";
--font_quran: "Quran";
--font_quran_bold: "Quran_Bold";
--font_1: "Vazirmatn-ExtraLight";
}

@font-face {
font-family: "Vazirmatn-Bold";
src: url(../font/Vazirmatn-Bold.ttf) format("truetype");
}

@font-face {
font-family: "Vazirmatn-ExtraLight";
src: url(../font/Vazirmatn-ExtraLight.ttf) format("truetype");
}

@font-face {
font-family: "Vazirmatn-Medium";
src: url(../font/Vazirmatn-Medium.ttf) format("truetype");
}

@font-face {
font-family: "Quran_Bold";
src: url(../font/Quran_Bold.ttf) format("truetype");
}

@font-face {
font-family: "Vazirmatn-Regular";
src: url(../font/Vazirmatn-Regular.ttf) format("truetype");
}

@font-face {
font-family: "Quran";
src: url(../font/Quran.ttf) format("truetype");
}
15 changes: 0 additions & 15 deletions src/public/css/tray_window.css
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
@font-face {
font-family: "Vazirmatn-Regular";
src: url(../font/Vazirmatn-Regular.ttf) format("truetype");
}

@font-face {
font-family: "Vazirmatn-Bold";
src: url(../font/Vazirmatn-Bold.ttf) format("truetype");
}

@font-face {
font-family: "Quran";
src: url(../font/Quran.ttf) format("truetype");
}

html,
body {
background-color: #232527b9;
Expand Down
4 changes: 0 additions & 4 deletions src/public/css/var.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
:root {
--font_default: "Vazirmatn-Regular";
--font_quran: "Quran";
--font_quran_bold: "Quran_Bold";
--font_1: "Vazirmatn-ExtraLight";
--font_size_surah: 30px;
--font_size_adhkar: 20px;
--background_body: #2e3338;
Expand Down

0 comments on commit 15ba0f7

Please sign in to comment.