From 3ebc91bef3e87227fd4da596d5837d03eb3057eb Mon Sep 17 00:00:00 2001 From: Andrew Van Tassel Date: Fri, 13 Jan 2017 17:41:46 -0700 Subject: [PATCH] Fixed preferences missing css Added more preferences styles --- CHANGELOG.md | 3 +- chrome/content/mailhops.js | 2 +- chrome/content/preferences.js | 4 +-- chrome/content/preferences.xul | 34 ++++++++++------------ chrome/locale/de/prefs.dtd | 5 +++- chrome/locale/en/prefs.dtd | 5 +++- chrome/locale/es/prefs.dtd | 5 +++- chrome/locale/fr/prefs.dtd | 5 +++- chrome/locale/ja/prefs.dtd | 5 +++- chrome/locale/pl/prefs.dtd | 5 +++- chrome/locale/pt-BR/prefs.dtd | 5 +++- chrome/locale/ru/prefs.dtd | 5 +++- chrome/locale/zh-CN/prefs.dtd | 5 +++- chrome/skin/classic/msgNotificationBar.css | 1 + chrome/skin/classic/prefs.css | 25 ++++++++++++++++ install.rdf | 2 +- 16 files changed, 82 insertions(+), 34 deletions(-) create mode 100644 chrome/skin/classic/prefs.css diff --git a/CHANGELOG.md b/CHANGELOG.md index 0347bbe..1c5e119 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,10 +3,11 @@ ## 3.0.3 - ### Added -- All locale translations for preferences +- More locale translations for preferences ### Fixed - Messages marked as local due to missing countryCode but had coords +- Preferences styles ## 3.0.2 - 2017-01-12 diff --git a/chrome/content/mailhops.js b/chrome/content/mailhops.js index f86af61..db1c4be 100644 --- a/chrome/content/mailhops.js +++ b/chrome/content/mailhops.js @@ -9,7 +9,7 @@ var mailHops = msgURI: null, isLoaded: false, options: { - 'version':'MailHops Plugin 3.0.2', + 'version':'MailHops Plugin 3.0.3', 'lan':'en', 'unit':'mi', 'api_http':'https://', diff --git a/chrome/content/preferences.js b/chrome/content/preferences.js index 0f3305b..d0c624d 100644 --- a/chrome/content/preferences.js +++ b/chrome/content/preferences.js @@ -90,9 +90,7 @@ var mailHopPreferences = { document.getElementById("mailhops-membership-link").addEventListener("click", function () { mailHopsUtils.launchExternalURL(this.getAttribute('data-account-url')); }); - document.getElementById("forecastio").addEventListener("click", function () { - mailHopsUtils.launchExternalURL('https://darksky.net'); - }); + this.saveAPIKey(); document.getElementById("mailhop.bar_color").addEventListener("input", function () { diff --git a/chrome/content/preferences.xul b/chrome/content/preferences.xul index 41d42a0..6ed4574 100644 --- a/chrome/content/preferences.xul +++ b/chrome/content/preferences.xul @@ -1,7 +1,7 @@ - + @@ -13,7 +13,7 @@ buttons="accept,cancel" onload="mailHopPreferences.loadPreferences();" ondialogaccept="return mailHopPreferences.savePreferences();" - title="MailHops Preferences"> + title="MailHops &mailhops_preferences;">