Skip to content

Commit

Permalink
Support GNOME 44
Browse files Browse the repository at this point in the history
  • Loading branch information
fcusr committed Mar 20, 2023
1 parent 4d816ee commit 01ea326
Show file tree
Hide file tree
Showing 18 changed files with 27 additions and 53 deletions.
43 changes: 8 additions & 35 deletions [email protected]/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,8 @@ function repaintWeather(icon) {
'color: rgb(' + tempR + ',' + tempG + ',' + tempB + ');' +
'font-family: ' + temperatureFont + ', sans-serif;' +
'font-weight: ' + tempBold + ';' +
'font-size: ' + iconSize / 96 * temperatureSize + 'px;';
'font-size: ' + iconSize / 96 * temperatureSize + 'px;' +
'text-shadow: 0 0 transparent;';
icon.label.visible = showTemperature;
}

Expand Down Expand Up @@ -518,41 +519,13 @@ function getIconSize(icon, context) {
}

function redisplayIcons() {
let controls = Main.overview._overview._controls;
let appDisplay = controls._appDisplay;
let apps = appDisplay._orderedItems.slice();
apps.forEach(icon => {
if(icon._id == CALENDAR_FILE || icon._id == CLOCKS_FILE
|| icon._id == WEATHER_FILE) {
icon.icon.update();
}
});
let folderIcons = appDisplay._folderIcons;
folderIcons.forEach(folderIcon => {
let appsInFolder = folderIcon.view._orderedItems.slice();
appsInFolder.forEach(icon => {
if(icon._id == CALENDAR_FILE || icon._id == CLOCKS_FILE
|| icon._id == WEATHER_FILE) {
icon.icon.update();
}
});
folderIcon.icon.update();
});
let dash = controls.dash;
let children = dash._box.get_children().filter(actor => {
return actor.child
&& actor.child._delegate && actor.child._delegate.app;
});
children.forEach(actor => {
let actorId = actor.child._delegate.app.get_id();
if(actorId == CALENDAR_FILE || actorId == CLOCKS_FILE
|| actorId == WEATHER_FILE) {
actor.child.icon.update();
}
let textureCache = St.TextureCache.get_default();
textureCache.disconnect(textureHandler);
textureCache.emit('icon-theme-changed');
textureHandler = textureCache.connect('icon-theme-changed', () => {
loadTheme();
weatherClient.emit('changed');
});
let searchResults = controls._searchController._searchResults;
searchResults._reloadRemoteProviders();
Main.panel.statusArea['appMenu']._onIconThemeChanged();
}

function destroyObjects() {
Expand Down
4 changes: 2 additions & 2 deletions [email protected]/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Dynamic Calendar, Clocks and Weather Icons",
"description":
"Let Calendar, Clocks and Weather icons show current date, time and weather.",
"version": 6,
"shell-version": ["43"],
"version": 7,
"shell-version": ["43", "44"],
"url": "https://github.com/fcusr/dynamic-calendar-and-clocks-icons"
}
3 changes: 2 additions & 1 deletion [email protected]/stylesheet.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.message .message-icon-bin > StDrawingArea,
.message .message-icon-bin > StBin {
.message .message-icon-bin > StBin,
.message .message-icon-bin > StBin StIcon {
width: 32px;
height: 32px;
-st-icon-style: symbolic;
Expand Down
2 changes: 1 addition & 1 deletion [email protected]/themes/Adwaita/theme-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dayMonthBold": true,
"dayMonthSize": 14,
"dayMonthPos": 25,
"dayMonthMaxWidth": 78,
"dayMonthMaxWidth": 74,
"dateColor": [237, 51, 59],
"dateFont": "Cantarell",
"dateBold": true,
Expand Down
2 changes: 1 addition & 1 deletion [email protected]/themes/Adwaita/weather-clear-night.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 01ea326

Please sign in to comment.