✨ Apply clang-format

This commit is contained in:
Simon Schneegans
2025-02-09 08:19:00 +01:00
parent 3ab1ffbc15
commit 91789d3617
8 changed files with 307 additions and 389 deletions
-3
View File
@@ -61,7 +61,6 @@ export var Shader = GObject.registerClass({
},
class Shader extends Shell.GLSLEffect {
// --------------------------------------------
// The constructor automagically loads the shader's source code (in
// vfunc_build_pipeline()) from the resource file resources/shaders/<nick>.glsl
@@ -209,6 +208,4 @@ export var Shader = GObject.registerClass({
// Add a trailing newline. Else the GLSL compiler complains...
return common + '\n' + code + '\n';
}
});
+1 -1
View File
@@ -61,7 +61,7 @@ export default class ShaderFactory {
// Only try to register the new type once.
if (GObject.type_from_name(typeName) == null) {
const outerThis = this;
GObject.registerClass({GTypeName: typeName}, class ShaderImp extends Shader{
GObject.registerClass({GTypeName: typeName}, class ShaderImp extends Shader {
// This will actually load the GLSL source code from the resources.
_init() {
super._init(outerThis._nick);
+1 -1
View File
@@ -271,7 +271,7 @@ export default class Effect {
},
{
name: _('Cattuccino 😺'), // A soft pastel palette inspired by a
// cappuccino theme
// cappuccino theme
ScaleStyle: 1.0,
SparkCount: 4,
SparkColor: 'rgba(255,255,255,1.0)',
-2
View File
@@ -172,6 +172,4 @@ export function parseColor(string) {
return [color.red / 255, color.green / 255, color.blue / 255, color.alpha / 255];
}