Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
inboxy 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
teresa-ou committed Mar 20, 2020
1 parent f7ac06c commit c35febd
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 27 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ Feel free to [send feedback](https://github.com/teresa-ou/inboxy/issues) by fili

## License

[GPL](https://github.com/teresa-ou/inboxy/blob/master/COPYING), Copyright (C) 2020 [Teresa Ou](https://github.com/teresa-ou)
[GPL](https://github.com/teresa-ou/inboxy/blob/master/COPYING), Copyright (C) 2020 [Teresa Ou](https://github.com/teresa-ou)
2 changes: 1 addition & 1 deletion dist/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "inboxy: Bundles for Gmail",
"version": "1.0.0",
"version": "1.0.1",
"description": "Google Inbox-style bundles for Gmail",
"homepage_url": "https://teresa-ou.github.io/inboxy",
"content_scripts": [{
Expand Down
13 changes: 7 additions & 6 deletions dist/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
* Bundle row
*/

.inboxy:not(.messages-dark-theme) tr:not(.bundle-row).zE,
.inboxy:not(.messages-dark-theme) .bundle-row.zE:not(.visible) {
background-color: rgba(242, 245, 245, 0.8);
}

.inboxy .bundle-row.zE {
font-weight: bold;
}
Expand All @@ -41,7 +46,7 @@
}

.inboxy.dark-theme .bundle-row.visible {
background-color: rgba(255, 255, 255, 0.3);
background-color: rgba(241, 243, 244, 0.24);
color: #ffffff;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}
Expand All @@ -59,10 +64,6 @@
padding: 0;
}

.inboxy .bundle-row.has-unread {
font-weight: bold;
}

/**
* Message count, in bundle row
*/
Expand Down Expand Up @@ -152,7 +153,7 @@
}

.inboxy.dark-theme .bundle-area {
background-color: rgba(255, 255, 255, 0.3);
background-color: rgba(241, 243, 244, 0.24);
}

/**
Expand Down
4 changes: 0 additions & 4 deletions src/bundling/Bundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,6 @@ class Bundler {
}

_applyStyles(messageNodes) {
messageNodes
.filter(this._isUnreadMessage)
.forEach(InboxyStyler.removeGmailUnreadStyling);

this.inboxyStyler.markSelectedBundles();
this.inboxyStyler.disableBulkArchiveIfNecessary();
}
Expand Down
8 changes: 0 additions & 8 deletions src/bundling/InboxyStyler.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,6 @@ class InboxyStyler {
this.bundledMail = bundledMail;
}

/**
* Remove Gmail's unread-message styling, ex. white background for light themes.
*/
static removeGmailUnreadStyling(message) {
message.classList.remove(GmailClasses.UNREAD);
message.classList.add(GmailClasses.READ);
}

/**
* Apply "selected" styling (i.e. checked) to all bundles that have any messages that
* are selected.
Expand Down
2 changes: 1 addition & 1 deletion src/components/BundleRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function create(label, order, messageCount, hasUnread, toggleBundle) {
const displayedMessageCount = messageCount >= MAX_MESSAGE_COUNT
? `${MAX_MESSAGE_COUNT}+`
: messageCount;
const unreadClass = hasUnread ? 'has-unread' : '';
const unreadClass = hasUnread ? GmailClasses.UNREAD : '';

const personalLevelClass = !!document.querySelector(Selectors.PERSONAL_LEVEL_INDICATOR)
? GmailClasses.PERSONAL_LEVEL_INDICATOR
Expand Down
4 changes: 0 additions & 4 deletions src/handlers/MessageSelectHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@ class MessageSelectHandler {
}
}

if (message.classList.contains(GmailClasses.UNREAD)) {
InboxyStyler.removeGmailUnreadStyling(message);
}

if (mutation.oldValue.includes(GmailClasses.SELECTED) !==
message.classList.contains(GmailClasses.SELECTED))
{
Expand Down
2 changes: 1 addition & 1 deletion src/util/MessagePageUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function _getHash(url) {
}

function _matchesPage1(hash) {
return hash.match(/inbox$/);
return hash === 'inbox';
}

function _matchesPageX(hash) {
Expand Down
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ module.exports = {
filename: 'content.js',
path: path.resolve(__dirname, 'dist')
},
mode: 'development'
mode: 'development',
devtool: 'inline-source-map'
};

0 comments on commit c35febd

Please sign in to comment.