main.js: fix variable naming style for css_stylesheet
Change css_stylesheet to cssStylesheet in various places.
This commit is contained in:
parent
36f3429ad2
commit
1137ca0fce
@ -67,8 +67,8 @@ let xdndHandler = null;
|
|||||||
let statusIconDispatcher = null;
|
let statusIconDispatcher = null;
|
||||||
let _errorLogStack = [];
|
let _errorLogStack = [];
|
||||||
let _startDate;
|
let _startDate;
|
||||||
let _default_css_stylesheet = null;
|
let _defaultCssStylesheet = null;
|
||||||
let _css_stylesheet = null;
|
let _cssStylesheet = null;
|
||||||
|
|
||||||
let background = null;
|
let background = null;
|
||||||
|
|
||||||
@ -113,7 +113,7 @@ function start() {
|
|||||||
global.stage.color = DEFAULT_BACKGROUND_COLOR;
|
global.stage.color = DEFAULT_BACKGROUND_COLOR;
|
||||||
global.stage.no_clear_hint = true;
|
global.stage.no_clear_hint = true;
|
||||||
|
|
||||||
_default_css_stylesheet = global.datadir + '/theme/gnome-shell.css';
|
_defaultCssStylesheet = global.datadir + '/theme/gnome-shell.css';
|
||||||
loadTheme();
|
loadTheme();
|
||||||
|
|
||||||
let shellwm = global.window_manager;
|
let shellwm = global.window_manager;
|
||||||
@ -217,19 +217,19 @@ function start() {
|
|||||||
*/
|
*/
|
||||||
function getThemeStylesheet()
|
function getThemeStylesheet()
|
||||||
{
|
{
|
||||||
return _css_stylesheet;
|
return _cssStylesheet;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* setThemeStylesheet:
|
* setThemeStylesheet:
|
||||||
* @css_stylesheet: A file path that contains the theme CSS,
|
* @cssStylesheet: A file path that contains the theme CSS,
|
||||||
* set it to null to use the default
|
* set it to null to use the default
|
||||||
*
|
*
|
||||||
* Set the theme CSS file that the shell will load
|
* Set the theme CSS file that the shell will load
|
||||||
*/
|
*/
|
||||||
function setThemeStylesheet(css_stylesheet)
|
function setThemeStylesheet(cssStylesheet)
|
||||||
{
|
{
|
||||||
_css_stylesheet = css_stylesheet;
|
_cssStylesheet = cssStylesheet;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -240,11 +240,11 @@ function setThemeStylesheet(css_stylesheet)
|
|||||||
function loadTheme() {
|
function loadTheme() {
|
||||||
let themeContext = St.ThemeContext.get_for_stage (global.stage);
|
let themeContext = St.ThemeContext.get_for_stage (global.stage);
|
||||||
|
|
||||||
let css_stylesheet = _default_css_stylesheet;
|
let cssStylesheet = _defaultCssStylesheet;
|
||||||
if (_css_stylesheet != null)
|
if (_cssStylesheet != null)
|
||||||
css_stylesheet = _css_stylesheet;
|
cssStylesheet = _cssStylesheet;
|
||||||
|
|
||||||
let theme = new St.Theme ({ application_stylesheet: css_stylesheet });
|
let theme = new St.Theme ({ application_stylesheet: cssStylesheet });
|
||||||
themeContext.set_theme (theme);
|
themeContext.set_theme (theme);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user