31 lines
732 B
JavaScript
31 lines
732 B
JavaScript
/**
|
|
* BetterDiscord Colour Setting Struct
|
|
* Copyright (c) 2015-present Jiiks/JsSucks - https://github.com/Jiiks / https://github.com/JsSucks
|
|
* All rights reserved.
|
|
* https://betterdiscord.net
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
import Setting from './basesetting';
|
|
|
|
export default class ColourSetting extends Setting {
|
|
|
|
/**
|
|
* The value to use when the setting doesn't have a value.
|
|
*/
|
|
get defaultValue() {
|
|
return 'rgba(0, 0, 0, 0)';
|
|
}
|
|
|
|
/**
|
|
* Returns a representation of this setting's value in SCSS.
|
|
* @return {String|Promise}
|
|
*/
|
|
toSCSS() {
|
|
return this.value;
|
|
}
|
|
|
|
}
|