1
0
mirror of https://github.com/MailHops/mailhops-plugin.git synced 2025-05-17 23:00:10 -07:00

Fixed preferences missing css

Added more preferences styles
This commit is contained in:
Andrew Van Tassel 2017-01-13 17:41:46 -07:00
parent ee052d675d
commit 3ebc91bef3
16 changed files with 82 additions and 34 deletions

View File

@ -3,10 +3,11 @@
## 3.0.3 - ## 3.0.3 -
### Added ### Added
- All locale translations for preferences - More locale translations for preferences
### Fixed ### Fixed
- Messages marked as local due to missing countryCode but had coords - Messages marked as local due to missing countryCode but had coords
- Preferences styles
## 3.0.2 - 2017-01-12 ## 3.0.2 - 2017-01-12

View File

@ -9,7 +9,7 @@ var mailHops =
msgURI: null, msgURI: null,
isLoaded: false, isLoaded: false,
options: { options: {
'version':'MailHops Plugin 3.0.2', 'version':'MailHops Plugin 3.0.3',
'lan':'en', 'lan':'en',
'unit':'mi', 'unit':'mi',
'api_http':'https://', 'api_http':'https://',

View File

@ -90,9 +90,7 @@ var mailHopPreferences = {
document.getElementById("mailhops-membership-link").addEventListener("click", function () { document.getElementById("mailhops-membership-link").addEventListener("click", function () {
mailHopsUtils.launchExternalURL(this.getAttribute('data-account-url')); mailHopsUtils.launchExternalURL(this.getAttribute('data-account-url'));
}); });
document.getElementById("forecastio").addEventListener("click", function () {
mailHopsUtils.launchExternalURL('https://darksky.net');
});
this.saveAPIKey(); this.saveAPIKey();
document.getElementById("mailhop.bar_color").addEventListener("input", function () { document.getElementById("mailhop.bar_color").addEventListener("input", function () {

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?> <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
<?xml-stylesheet href="chrome://mailhops/skin/pb-styles.css" type="text/css"?> <?xml-stylesheet href="chrome://mailhops/skin/prefs.css" type="text/css"?>
<!DOCTYPE window [ <!DOCTYPE window [
<!ENTITY % MailHopsDTD SYSTEM "chrome://mailhops/locale/prefs.dtd"> <!ENTITY % MailHopsDTD SYSTEM "chrome://mailhops/locale/prefs.dtd">
@ -13,7 +13,7 @@
buttons="accept,cancel" buttons="accept,cancel"
onload="mailHopPreferences.loadPreferences();" onload="mailHopPreferences.loadPreferences();"
ondialogaccept="return mailHopPreferences.savePreferences();" ondialogaccept="return mailHopPreferences.savePreferences();"
title="MailHops Preferences"> title="MailHops &mailhops_preferences;">
<script type="application/x-javascript" src="chrome://mailhops/content/utils.js"/> <script type="application/x-javascript" src="chrome://mailhops/content/utils.js"/>
<script type="application/x-javascript" src="chrome://mailhops/content/preferences.js"/> <script type="application/x-javascript" src="chrome://mailhops/content/preferences.js"/>
@ -31,13 +31,13 @@
<tabpanels> <tabpanels>
<tabpanel> <tabpanel>
<groupbox flex="1"> <groupbox flex="1">
<caption label="MailHops Membership"/> <caption label="MailHops &mailhops_tab_member_label;"/>
<description> <description>
API Key <label id="mailhops-membership-link" class="text-link plain" value="Join MailHops" data-account-url="https://mailhops.com"/> API Key <label id="mailhops-membership-link" class="text-link plain" value="Join MailHops" data-account-url="https://mailhops.com"/>
</description> </description>
<hbox align="center"> <hbox align="center">
<textbox id="mailhop.api_key" placeholder="Enter your MailHops API Member Key" width="500"/> <textbox id="mailhop.api_key" placeholder="Enter your MailHops API Member Key" width="500"/>
<button onclick="mailHopPreferences.saveAPIKey();">Save Key</button> <button onclick="mailHopPreferences.saveAPIKey();">Save API Key</button>
</hbox> </hbox>
<hbox align="center"> <hbox align="center">
<description> <description>
@ -74,7 +74,7 @@
<tabpanel> <tabpanel>
<groupbox flex="1" style="height:400px;overflow: scroll;"> <groupbox flex="1" style="height:400px;overflow: scroll;">
<caption label="Filters"/> <caption label="&mailhops_tab_filters_label;"/>
<checkbox id="mailhop.country_tag" label="Tag messages with country origin" checked="false" disabled="true" class="filters"/> <checkbox id="mailhop.country_tag" label="Tag messages with country origin" checked="false" disabled="true" class="filters"/>
<checkbox id="mailhop.travel_time_junk" label="Tag messages that take longer than 10 seconds as Junk" checked="false" disabled="true" class="filters"/> <checkbox id="mailhop.travel_time_junk" label="Tag messages that take longer than 10 seconds as Junk" checked="false" disabled="true" class="filters"/>
@ -352,7 +352,7 @@
<tabpanel> <tabpanel>
<groupbox flex="1"> <groupbox flex="1">
<caption label="Default Language"/> <caption label="&mailhops_tab_defaults_label; Language"/>
<radiogroup id="mailhop.lang"> <radiogroup id="mailhop.lang">
<radio value="en" label="English" selected="true"/> <radio value="en" label="English" selected="true"/>
<radio value="de" label="German"/> <radio value="de" label="German"/>
@ -367,7 +367,7 @@
</groupbox> </groupbox>
<groupbox flex="1"> <groupbox flex="1">
<caption label="Default Units"/> <caption label="&mailhops_tab_defaults_label; Units"/>
<radiogroup id="mailhop.unit"> <radiogroup id="mailhop.unit">
<radio value="mi" label="Miles and ºF" selected="true"/> <radio value="mi" label="Miles and ºF" selected="true"/>
<radio value="km" label="Kilometers and ºC"/> <radio value="km" label="Kilometers and ºC"/>
@ -375,7 +375,7 @@
</groupbox> </groupbox>
<groupbox flex="1"> <groupbox flex="1">
<caption label="Default Map"/> <caption label="&mailhops_tab_defaults_label; Map"/>
<menulist id="mailhop.map_provider"> <menulist id="mailhop.map_provider">
<menupopup> <menupopup>
<menuitem value="OpenStreetMap.Mapnik" label="OpenStreetMap.Mapnik" /> <menuitem value="OpenStreetMap.Mapnik" label="OpenStreetMap.Mapnik" />
@ -484,7 +484,7 @@
</tabpanel> </tabpanel>
<tabpanel> <tabpanel>
<groupbox flex="1"> <groupbox flex="1">
<caption label="Display Styles"/> <caption label="&mailhops_tab_display_label;"/>
<description> <description>
Use any <label class="text-link plain" href="https://en.wikipedia.org/wiki/Web_colors" value="HTML color name or Hex code"/>. Use any <label class="text-link plain" href="https://en.wikipedia.org/wiki/Web_colors" value="HTML color name or Hex code"/>.
</description> </description>
@ -504,7 +504,7 @@
<row> <row>
<label value="Bar Color"></label> <label value="Bar Color"></label>
<textbox id="mailhop.bar_color" value="#5E7A9B" placeholder="Enter a hex color code"/> <textbox id="mailhop.bar_color" value="#5E7A9B" placeholder="Enter a hex color code"/>
<grid> <grid class="grid-color">
<columns> <columns>
<column/> <column/>
<column/> <column/>
@ -541,7 +541,7 @@
<row> <row>
<label value="Font Color"></label> <label value="Font Color"></label>
<textbox id="mailhop.font_color" value="#FFF" placeholder="Enter a hex color code"/> <textbox id="mailhop.font_color" value="#FFF" placeholder="Enter a hex color code"/>
<grid> <grid class="grid-color">
<columns> <columns>
<column/> <column/>
<column/> <column/>
@ -565,19 +565,15 @@
</rows> </rows>
</grid> </grid>
<checkbox id="mailhop.hide_compact" label="Hide MailHops Bar when CompactHeaders" checked="false"/> <checkbox id="mailhop.hide_compact" label="Hide MailHops Bar when CompactHeaders are collapsed" checked="false"/>
<label class="text-link plain" href="https://addons.mozilla.org/en-us/thunderbird/addon/compactheader/" value="CompactHeaders Add-on"/>
</groupbox> </groupbox>
</tabpanel> </tabpanel>
<tabpanel> <tabpanel>
<groupbox> <groupbox>
<caption label="MailHops API &amp; Hosting"/> <caption label="&mailhops_tab_api_label;"/>
<!-- <description>
MailHops API hosting is sponsored by
<image src="https://mailhops.com/images/sponsor.png" width="200"/>
</description> -->
<grid> <grid>
<columns> <columns>
<column/> <column/>
@ -606,7 +602,7 @@
<spacer/> <spacer/>
<description> <description>
MailHops API uses <label id="forecastio" class="text-link plain" value="DarkSky"/> to get the weather of the sender, register for an API Key to enable this feature. MailHops API uses <label class="text-link plain" value="DarkSky" href="https://darksky.net"/> to get the weather of the sender, register for an API Key to enable this feature.
</description> </description>
<textbox id="mailhop.fkey" value="" placeholder="Enter your DarkSky API Key"/> <textbox id="mailhop.fkey" value="" placeholder="Enter your DarkSky API Key"/>

View File

@ -1,5 +1,8 @@
<!ENTITY mailhops_preferences "Einstellungen">
<!ENTITY mailhops_tab_member_label "Member"> <!ENTITY mailhops_tab_member_label "Member">
<!ENTITY mailhops_tab_filters_label "Filters"> <!ENTITY mailhops_tab_filters_label "Filters">
<!ENTITY mailhops_tab_defaults_label "Defaults"> <!ENTITY mailhops_tab_defaults_label "Default">
<!ENTITY mailhops_tab_display_label "Display"> <!ENTITY mailhops_tab_display_label "Display">
<!ENTITY mailhops_tab_api_label "API &amp; Hosting"> <!ENTITY mailhops_tab_api_label "API &amp; Hosting">
<!ENTITY mailhops_connection_test "Test Connection">
<!ENTITY mailhops_connection_reset "Reset Connection">

View File

@ -1,5 +1,8 @@
<!ENTITY mailhops_preferences "Preferences">
<!ENTITY mailhops_tab_member_label "Member"> <!ENTITY mailhops_tab_member_label "Member">
<!ENTITY mailhops_tab_filters_label "Filters"> <!ENTITY mailhops_tab_filters_label "Filters">
<!ENTITY mailhops_tab_defaults_label "Defaults"> <!ENTITY mailhops_tab_defaults_label "Default">
<!ENTITY mailhops_tab_display_label "Display"> <!ENTITY mailhops_tab_display_label "Display">
<!ENTITY mailhops_tab_api_label "API &amp; Hosting"> <!ENTITY mailhops_tab_api_label "API &amp; Hosting">
<!ENTITY mailhops_connection_test "Test Connection">
<!ENTITY mailhops_connection_reset "Reset Connection">

View File

@ -1,5 +1,8 @@
<!ENTITY mailhops_preferences "Preferencias">
<!ENTITY mailhops_tab_member_label "Member"> <!ENTITY mailhops_tab_member_label "Member">
<!ENTITY mailhops_tab_filters_label "Filters"> <!ENTITY mailhops_tab_filters_label "Filters">
<!ENTITY mailhops_tab_defaults_label "Defaults"> <!ENTITY mailhops_tab_defaults_label "Default">
<!ENTITY mailhops_tab_display_label "Display"> <!ENTITY mailhops_tab_display_label "Display">
<!ENTITY mailhops_tab_api_label "API &amp; Hosting"> <!ENTITY mailhops_tab_api_label "API &amp; Hosting">
<!ENTITY mailhops_connection_test "Test Connection">
<!ENTITY mailhops_connection_reset "Reset Connection">

View File

@ -1,5 +1,8 @@
<!ENTITY mailhops_preferences "Préférences">
<!ENTITY mailhops_tab_member_label "Member"> <!ENTITY mailhops_tab_member_label "Member">
<!ENTITY mailhops_tab_filters_label "Filters"> <!ENTITY mailhops_tab_filters_label "Filters">
<!ENTITY mailhops_tab_defaults_label "Defaults"> <!ENTITY mailhops_tab_defaults_label "Default">
<!ENTITY mailhops_tab_display_label "Display"> <!ENTITY mailhops_tab_display_label "Display">
<!ENTITY mailhops_tab_api_label "API &amp; Hosting"> <!ENTITY mailhops_tab_api_label "API &amp; Hosting">
<!ENTITY mailhops_connection_test "Test Connection">
<!ENTITY mailhops_connection_reset "Reset Connection">

View File

@ -1,5 +1,8 @@
<!ENTITY mailhops_preferences "設定">
<!ENTITY mailhops_tab_member_label "Member"> <!ENTITY mailhops_tab_member_label "Member">
<!ENTITY mailhops_tab_filters_label "Filters"> <!ENTITY mailhops_tab_filters_label "Filters">
<!ENTITY mailhops_tab_defaults_label "Defaults"> <!ENTITY mailhops_tab_defaults_label "Default">
<!ENTITY mailhops_tab_display_label "Display"> <!ENTITY mailhops_tab_display_label "Display">
<!ENTITY mailhops_tab_api_label "API &amp; Hosting"> <!ENTITY mailhops_tab_api_label "API &amp; Hosting">
<!ENTITY mailhops_connection_test "Test Connection">
<!ENTITY mailhops_connection_reset "Reset Connection">

View File

@ -1,5 +1,8 @@
<!ENTITY mailhops_preferences "opcje">
<!ENTITY mailhops_tab_member_label "Member"> <!ENTITY mailhops_tab_member_label "Member">
<!ENTITY mailhops_tab_filters_label "Filters"> <!ENTITY mailhops_tab_filters_label "Filters">
<!ENTITY mailhops_tab_defaults_label "Defaults"> <!ENTITY mailhops_tab_defaults_label "Default">
<!ENTITY mailhops_tab_display_label "Display"> <!ENTITY mailhops_tab_display_label "Display">
<!ENTITY mailhops_tab_api_label "API &amp; Hosting"> <!ENTITY mailhops_tab_api_label "API &amp; Hosting">
<!ENTITY mailhops_connection_test "Test Connection">
<!ENTITY mailhops_connection_reset "Reset Connection">

View File

@ -1,5 +1,8 @@
<!ENTITY mailhops_preferences "Preferências">
<!ENTITY mailhops_tab_member_label "Member"> <!ENTITY mailhops_tab_member_label "Member">
<!ENTITY mailhops_tab_filters_label "Filters"> <!ENTITY mailhops_tab_filters_label "Filters">
<!ENTITY mailhops_tab_defaults_label "Defaults"> <!ENTITY mailhops_tab_defaults_label "Default">
<!ENTITY mailhops_tab_display_label "Display"> <!ENTITY mailhops_tab_display_label "Display">
<!ENTITY mailhops_tab_api_label "API &amp; Hosting"> <!ENTITY mailhops_tab_api_label "API &amp; Hosting">
<!ENTITY mailhops_connection_test "Test Connection">
<!ENTITY mailhops_connection_reset "Reset Connection">

View File

@ -1,5 +1,8 @@
<!ENTITY mailhops_preferences "предпочтения">
<!ENTITY mailhops_tab_member_label "Member"> <!ENTITY mailhops_tab_member_label "Member">
<!ENTITY mailhops_tab_filters_label "Filters"> <!ENTITY mailhops_tab_filters_label "Filters">
<!ENTITY mailhops_tab_defaults_label "Defaults"> <!ENTITY mailhops_tab_defaults_label "Default">
<!ENTITY mailhops_tab_display_label "Display"> <!ENTITY mailhops_tab_display_label "Display">
<!ENTITY mailhops_tab_api_label "API &amp; Hosting"> <!ENTITY mailhops_tab_api_label "API &amp; Hosting">
<!ENTITY mailhops_connection_test "Test Connection">
<!ENTITY mailhops_connection_reset "Reset Connection">

View File

@ -1,5 +1,8 @@
<!ENTITY mailhops_preferences "优先">
<!ENTITY mailhops_tab_member_label "Member"> <!ENTITY mailhops_tab_member_label "Member">
<!ENTITY mailhops_tab_filters_label "Filters"> <!ENTITY mailhops_tab_filters_label "Filters">
<!ENTITY mailhops_tab_defaults_label "Defaults"> <!ENTITY mailhops_tab_defaults_label "Default">
<!ENTITY mailhops_tab_display_label "Display"> <!ENTITY mailhops_tab_display_label "Display">
<!ENTITY mailhops_tab_api_label "API &amp; Hosting"> <!ENTITY mailhops_tab_api_label "API &amp; Hosting">
<!ENTITY mailhops_connection_test "Test Connection">
<!ENTITY mailhops_connection_reset "Reset Connection">

View File

@ -37,6 +37,7 @@
line-height: 24px; line-height: 24px;
font-weight: normal; font-weight: normal;
background: #5E7A9B; background: #5E7A9B;
overflow-x: scroll;
} }
#mailhopsNoficationBox #mailhopsDataPanePrefsLink { #mailhopsNoficationBox #mailhopsDataPanePrefsLink {

View File

@ -0,0 +1,25 @@
#mailHopsPreferences {
font-family: 'Raleway',Arial,sans-serif;
font-size: 14px;
}
#mailHopsPreferences textbox {
font-size: 14px;
padding: 5px;
color: #777;
}
#mailHopsPreferences tab {
font-size: 14px;
padding: 5px;
color: #333;
}
#mailHopsPreferences button{
height: 35px;
color: #333;
}
#mailHopsPreferences .grid-color{
margin-top: 7px;
}

View File

@ -5,7 +5,7 @@
<Description about="urn:mozilla:install-manifest"> <Description about="urn:mozilla:install-manifest">
<em:type>2</em:type> <em:type>2</em:type>
<em:id>thunderbird@mailhops.com</em:id> <em:id>thunderbird@mailhops.com</em:id>
<em:version>3.0.2</em:version> <em:version>3.0.3</em:version>
<em:name>MailHops</em:name> <em:name>MailHops</em:name>
<em:description>MailHops maps the route an email took to get to you. Displaying the senders location, weather, user-agent and authentication used.</em:description> <em:description>MailHops maps the route an email took to get to you. Displaying the senders location, weather, user-agent and authentication used.</em:description>