Skip to content
Snippets Groups Projects
Commit c6fade37 authored by Lucie Bader's avatar Lucie Bader
Browse files

Police d'écriture Luciole

parent 4c4d0ef3
No related branches found
No related tags found
2 merge requests!8Test final,!6Améliorations du menu de l'extension
File added
source diff could not be displayed: it is too large. Options to address this: view the blob.
File added
File added
File added
<!DOCTYPE html>
<!-- <!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
......@@ -7,7 +7,7 @@
<script src="../utils/logger.js"></script>
<style>
body {
font-family: Arial, sans-serif;
font-family: Luciole;
padding: 20px;
background-color: #323046;
color: white;
......@@ -35,4 +35,4 @@
<button id="toggleStatsBtn">Activer/Désactiver les statistiques</button>
<script src="options.js"></script>
</body>
</html>
</html> -->
document.getElementById('connectBtn').addEventListener('click', () => {
browser.runtime.sendMessage({ action: "openLoginPage" });
});
// document.getElementById('connectBtn').addEventListener('click', () => {
// browser.runtime.sendMessage({ action: "openLoginPage" });
// });
async function disconnectFromLexicalDB() {
await browser.storage.local.remove("accessToken");
log("Token supprimé, déconnexion réussie.");
alert("Déconnexion réussie.");
updateContextMenu();
// async function disconnectFromLexicalDB() {
// await browser.storage.local.remove("accessToken");
// log("Token supprimé, déconnexion réussie.");
// alert("Déconnexion réussie.");
// updateContextMenu();
// Envoi d'un message pour mettre à jour l'UI
browser.runtime.sendMessage({ action: "updateUI" });
}
// // Envoi d'un message pour mettre à jour l'UI
// browser.runtime.sendMessage({ action: "updateUI" });
// }
document.getElementById("toggleExtensionBtn").addEventListener("click", async () => {
const { extensionActive } = await browser.storage.local.get("extensionActive");
const newState = !extensionActive;
await browser.storage.local.set({ extensionActive: newState });
alert(`Extension ${newState ? "activée" : "désactivée"}.`);
});
// document.getElementById("toggleExtensionBtn").addEventListener("click", async () => {
// const { extensionActive } = await browser.storage.local.get("extensionActive");
// const newState = !extensionActive;
// await browser.storage.local.set({ extensionActive: newState });
// alert(`Extension ${newState ? "activée" : "désactivée"}.`);
// });
document.getElementById("toggleStatsBtn").addEventListener("click", async () => {
const { statsActive } = await browser.storage.local.get("statsActive");
const newState = !statsActive;
await browser.storage.local.set({ statsActive: newState });
alert(`Statistiques ${newState ? "activées" : "désactivées"}.`);
});
// document.getElementById("toggleStatsBtn").addEventListener("click", async () => {
// const { statsActive } = await browser.storage.local.get("statsActive");
// const newState = !statsActive;
// await browser.storage.local.set({ statsActive: newState });
// alert(`Statistiques ${newState ? "activées" : "désactivées"}.`);
// });
......@@ -6,6 +6,14 @@
<title>Extension BaLex</title>
<script src="../utils/logger.js"></script>
<style>
@font-face {
font-family: 'Luciole';
src: url('chemin/vers/Luciole-Regular.woff2') format('woff2'),
url('chemin/vers/Luciole-Regular.woff') format('woff');
font-weight: normal;
font-style: normal;
}
#extension-notification {
position: absolute;
top: 50%;
......@@ -44,7 +52,7 @@
}
body {
font-family: Helvetica, sans-serif;
font-family: Luciole;
font-size: medium;
margin: 0;
padding: 8px;
......@@ -54,6 +62,7 @@
width: 200px;
}
button {
font-family: Luciole;
width: 100%;
padding: 12px;
margin-bottom: 8px;
......@@ -75,7 +84,7 @@
display: inline-flex;
padding: 6px 12px;
font-size: 18px;
font-family: Bradley Hand, cursive;
font-family: Luciole;
background: none;
border: none;
color: white;
......@@ -104,7 +113,7 @@
margin-bottom: 10px;
}
#extension-name {
font-family: Helvetica, sans-serif;
font-family: Luciole;
text-align: center;
font-size: 23px;
font-weight: bold;
......
......@@ -13,7 +13,7 @@
<style>
/* Style global */
body {
font-family: Helvetica, sans-serif;
font-family: Luciole;
font-size: medium;
margin: 0;
padding: 10px;
......@@ -49,7 +49,7 @@
display: inline-flex;
padding: 6px 12px;
font-size: 18px;
font-family: Bradley Hand, cursive;
font-family: Luciole;
background: none;
border: none;
color: white;
......@@ -102,6 +102,7 @@
/* Boutons standards */
button {
font-family: Luciole;
width: 100%;
margin-top: 5px;
padding: 10px;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment