Skip to content

Commit

Permalink
Merge pull request #2 from JanluOfficial/main
Browse files Browse the repository at this point in the history
a bunch of branding related functions
  • Loading branch information
MTSyntho authored Dec 10, 2024
2 parents 7ab3e1f + 4527b2b commit ea0014a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 11 deletions.
9 changes: 9 additions & 0 deletions libs/system/sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,5 +318,14 @@ const element = {
const system = {
version: () => {
return 8;
},
name: () => {
return "AzuOS";
},
copyright: () => {
return "Copyright @ AzuSystem 2024";
},
maker: () => {
return "AzuSystem";
}
}
5 changes: 1 addition & 4 deletions pkgs/apps/desktop/watermark.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,14 @@
Written by: MTSyntho @ AzuSystem 2024
*/

// Gets system version
var systemversion = system.version().toString();

// Create a <p> element
var watermark = document.createElement('p');

// Set the class attribute
watermark.className = 'sysver';

// Set the inner HTML
watermark.innerHTML = 'AzuOS Alpha ' + systemversion + '<br>By AzuSystem';
watermark.innerHTML = system.name() + ' Alpha ' + system.version().toString() + '<br>By ' + system.maker();

// Add to desktop
var desktop = document.getElementById('desktop');
Expand Down
4 changes: 1 addition & 3 deletions pkgs/apps/dynamic-test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
var systemversion = system.version().toString();

win.create("sdk testing", "root2").then(win => win
.setWidth(700)
.setHeight(500)
Expand All @@ -22,7 +20,7 @@ element.create('p', 'This script is used to test the AzuOS SDK', "tes").then(elm
.textalign('center')
);

element.create('p', 'Copyright @ AzuSystem 2024 - AzuOS Alpha ' + systemversion, "tes").then(elm => elm
element.create('p', system.copyright() + ' - ' + system.name() + ' Alpha ' + system.version().toString(), "tes").then(elm => elm
.window("root2")
.textalign('center')
);
8 changes: 4 additions & 4 deletions pkgs/apps/sysver.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

var systemversion = system.version().toString();

win.create("About AzuOS", "root").then(win => win
win.create("About " + system.name(), "root").then(win => win
.setWidth(700)
.setHeight(500)
.confirm()
Expand Down Expand Up @@ -57,16 +57,16 @@ element.create('img', '', 'logo').then(elm => elm
.parent('sidebar')
);

element.create("h2", "AzuOS", "").then(elm => elm
element.create("h2", system.name(), "").then(elm => elm
.parent('contents')
.textshadow('0px 0px 50px #ffffffcc')
);

element.create('p', 'AzuOS is an Operating System written primarily with Web Technologies.', "").then(elm => elm
element.create('p', system.name() + ' is an Operating System written primarily with Web Technologies.', "").then(elm => elm
.parent('contents')
);

element.create('p', 'Copyright @ AzuSystem 2024 - AzuOS Alpha ' + systemversion, "tes").then(elm => elm
element.create('p', system.copyright() + ' - ' + system.name() + ' Alpha ' + system.version().toString(), "tes").then(elm => elm
.parent('contents')
);

Expand Down
1 change: 1 addition & 0 deletions stylesheets/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,7 @@ hr.menuhr {
opacity: 0.5;
text-align: right;
text-shadow: 0px 0px 25px #000000cc;
pointer-events: none;
}

.contextmenu {
Expand Down

0 comments on commit ea0014a

Please sign in to comment.