Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
MattByName committed Mar 26, 2024
2 parents 2af60e6 + 291b883 commit 5ad03f5
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 19 deletions.
35 changes: 28 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,38 @@
# Color Tint Changelog
# ColorTint Changelog

# Upcoming

## Fixes
## Upcoming Features

### Added
- New overlay code to fix [Issue 20](https://github.com/MattByName/color-tint/issues/20)
- No longer shipping compiled schemas, once Gnome 44 becomes oldest supported release

## 2.3.2
### Changed

### Deprecated
- Compiled schemas in package

### Removed

### Fixed
- Changelog will now show the date of release.
### Security

## 2.3.4 - 2024-03-26

### Added
- GNOME 46 Support

## 2.3.2 - 2023-12-08

### Added
- GNOME 45 Support

### Changed
- Imports now use ES modules

### Removed

- GNOME 45 support
- GNOME 44 and older will not be supported going forward. See table in the [Readme](./README.md)
for legacy compatibility.

## 2.3.1

Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## About

ColorTint is a Gnome extension that draws a translucent coloured overlay over your desktop. This is
ColorTint is a GNOME extension that draws a translucent coloured overlay over your desktop. This is
to help people with dyslexia, visual stress, scopic sensitivity, and related conditions.

If you use this extension, please consider starring it on GitHub to help me get a sense of the size of the userbase.
Expand Down Expand Up @@ -40,13 +40,17 @@ directory.
## Support

I maintain this extension in my spare time for my own use and because I believe it's an important accessibility feature. If you want to make a small coffee- or beer-sized donation, here are some ways to do so. Please don't send anything larger, other projects need it more.
<<<<<<< HEAD

- [ko-fi](https://ko-fi.com/E1E1CFXTK)
- [Github Sponsor](https://github.com/sponsors/MattByName)
- [LiberaPay](https://liberapay.com/mattbyname/)
- Bitcoin: 16uDRKJxmG6RxrArYFApYkAe1accQ64DVU
- Ethereum: 0x1281b6DA86d05CC133e95D756c8d4503873dD25D

=======
- [![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/E1E1CFXTK)
>>>>>>> develop
## Contributing

Please do contribute if you want to change something or help out with one of the issues.
Expand All @@ -68,7 +72,8 @@ slightly out of date compared to github.

| GNOME Releases | ColorTint Releases | Extension Site version |
| :------------- | :--------------------------------------------------------------------- | :--------------------- |
| 45 | [latest](https://github.com/MattByName/color-tint/releases/latest) | 21 |
| 46 | [latest](https://github.com/MattByName/color-tint/releases/latest) | 22 |
| 45 | [latest](https://github.com/MattByName/color-tint/releases/latest) | 22 |
| 44 | [v2.3.1](https://github.com/MattByName/color-tint/releases/tag/v2.3.1) | 19 |
| 43 | [v2.3.1](https://github.com/MattByName/color-tint/releases/tag/v2.3.1) | 19 |
| 42 | [v2.3.1](https://github.com/MattByName/color-tint/releases/tag/v2.3.1) | 19 |
Expand Down
15 changes: 6 additions & 9 deletions src/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ export default class ColorTinter extends Extension {
// Hide Overlay
hide() {
overlay_active = false;
Main.uiGroup.remove_actor(overlay);
Main.uiGroup.remove_child(overlay);
}

// Show Overlay
show() {
Main.uiGroup.add_actor(overlay);
Main.uiGroup.add_child(overlay);
overlay_active = true;
}

Expand Down Expand Up @@ -120,11 +120,8 @@ export default class ColorTinter extends Extension {
overlay_active = false;
this.loadColor();
this.createOverlay();
if (settings.get_boolean("autostart")) this.show();
}

stop_now() {
if (overlay_active == true) Main.uiGroup.remove_actor(overlay);
else {console.log('There is a clutter container')};
if (overlay_active == true) Main.uiGroup.remove_child(overlay);

overlay.destroy();
overlay = null;
Expand All @@ -151,7 +148,7 @@ const MenuButton = GObject.registerClass(

icon.gicon = Gio.icon_new_for_string(`${metadata.path}/${iconName}`);
icon.set_icon_size(20);
box.add(icon);
box.add_child(icon);

// We add the box to the button
// It will be showed in the Top Panel
Expand All @@ -169,7 +166,7 @@ const MenuButton = GObject.registerClass(

// Add the label and submenu to the menu expander
popupMenuExpander.menu.addMenuItem(submenu);
popupMenuExpander.menu.box.add(label);
popupMenuExpander.menu.box.add_child(label);

// Other standard menu items
let offswitch = new PopupMenu.PopupSwitchMenuItem("Tint", overlay_active);
Expand Down
2 changes: 1 addition & 1 deletion src/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"github": "mattbyname",
"liberapay": "mattbyname"
},
"shell-version": ["45"]
"shell-version": ["45","46"]
}

0 comments on commit 5ad03f5

Please sign in to comment.