Skip to content

Commit

Permalink
Merge pull request #884 from fredcw/timelet
Browse files Browse the repository at this point in the history
[email protected] Mint 21.2 update
  • Loading branch information
claudiux authored Jul 30, 2023
2 parents 88cdd35 + 8719f3a commit f8039e5
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 10 deletions.
6 changes: 4 additions & 2 deletions [email protected]/files/[email protected]/desklet.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ Timelet.prototype = {
if (locale) {
// convert $LANG from format "en_GB.UTF-8" to "en-GB"
locale = GLib.getenv("LANG").replace(/_/g, "-").replace(/\..+/, "");
} else {
}
if (!locale || locale === "C") {
// fallback locale
locale = "en-US";
}
Expand All @@ -107,7 +108,8 @@ Timelet.prototype = {
if (locale) {
// convert $LANG from format "en_GB.UTF-8" to "en-GB"
locale = GLib.getenv("LANG").replace(/_/g, "-").replace(/\..+/, "");
} else {
}
if (!locale || locale === "C") {
// fallback locale
locale = "en-US";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const Theme = imports.theme.Theme;
/**
* Digital theme class.
*/
class DigitalTheme extends Theme {
var DigitalTheme = class DigitalTheme extends Theme {

constructor(config) {
super(config);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const Theme = imports.theme.Theme;
/**
* Flair theme class.
*/
class FlairTheme extends Theme {
var FlairTheme = class FlairTheme extends Theme {

constructor(config) {
super(config);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const Theme = imports.theme.Theme;
/**
* Gotham theme class.
*/
class GothamTheme extends Theme {
var GothamTheme = class GothamTheme extends Theme {

constructor(config) {
super(config);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const Theme = imports.theme.Theme;
/**
* Jelly theme class.
*/
class JellyTheme extends Theme {
var JellyTheme = class JellyTheme extends Theme {

constructor(config) {
super(config);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const Theme = imports.theme.Theme;
/**
* Metro theme class.
*/
class MetroTheme extends Theme {
var MetroTheme = class MetroTheme extends Theme {

constructor(config) {
super(config);
Expand Down
4 changes: 2 additions & 2 deletions [email protected]/files/[email protected]/themes/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function _(str) {
/**
* This class is used to pass user configurations to themes.
*/
class Config {
var Config = class Config {
constructor(scale, textColor) {
this.scale = scale;
this.textColor = textColor;
Expand All @@ -40,7 +40,7 @@ class Config {
/**
* The base Theme class. All themes must extend this class.
*/
class Theme {
var Theme = class Theme {

/**
* Timelet will parse the user input into a Config object and pass it to the theme.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const MetroTheme = imports.metro.MetroTheme;
* Step 2: Append your theme name to the `getThemeNames()` function list.
* Step 3: Add an `else-if` condition to create your theme if the name matches the name you defined in Step 2.
*/
class Themes {
var Themes = class Themes {

/**
* This output will be used as the config GUI theme selector values.
Expand Down

0 comments on commit f8039e5

Please sign in to comment.