Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
34
gaia/apps/settings/js/panels/display/panel.js
Executable file
34
gaia/apps/settings/js/panels/display/panel.js
Executable file
|
|
@ -0,0 +1,34 @@
|
|||
/**
|
||||
* The display panel allow user to modify timeout forscreen-off, brightness.
|
||||
*/
|
||||
define(function(require) {
|
||||
'use strict';
|
||||
|
||||
var SettingsPanel = require('modules/settings_panel');
|
||||
var DisplayModule = require('panels/display/display');
|
||||
var LazyLoader = require('shared/lazy_loader');
|
||||
|
||||
var displayElements = {};
|
||||
|
||||
return function ctor_display_panel() {
|
||||
var display = DisplayModule();
|
||||
|
||||
return SettingsPanel({
|
||||
onInit: function dp_onInit(panel) {
|
||||
displayElements = {
|
||||
brightnessManual: panel.querySelector('.brightness-manual'),
|
||||
brightnessManualInput:
|
||||
panel.querySelector('.brightness-manual input'),
|
||||
brightnessAuto: panel.querySelector('.brightness-auto'),
|
||||
brightnessAutoCheckbox:
|
||||
panel.querySelector('.brightness-auto gaia-checkbox')
|
||||
};
|
||||
|
||||
LazyLoader.getJSON('/resources/device-features.json')
|
||||
.then(function(data) {
|
||||
display.init(displayElements, data);
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
});
|
||||
Loading…
Reference in a new issue