Skip to content

Commit

Permalink
appIndicator: Use default sizing as const variable
Browse files Browse the repository at this point in the history
  • Loading branch information
3v1n0 committed Feb 26, 2020
1 parent bac3f1c commit 545b0ee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions appIndicator.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ var IconCache = Extension.imports.iconCache;
const Util = Extension.imports.util;
const Interfaces = Extension.imports.interfaces;

const DEFAULT_FALLBACK_ICON_SIZE = 22

const SNICategory = {
APPLICATION: 'ApplicationStatus',
COMMUNICATIONS: 'Communications',
Expand Down Expand Up @@ -374,9 +376,8 @@ class AppIndicators_IconActor extends Shell.Stack {
}

_getIconInfo(name, themePath, size) {
// assume as a default size 16px if not set.
if (!size)
size = 16;
size = DEFAULT_FALLBACK_ICON_SIZE;
// realSize will contain the actual icon size in contrast to the requested icon size.
let realSize = size;
let path = null;
Expand Down

0 comments on commit 545b0ee

Please sign in to comment.