Skip to content

Commit

Permalink
Merge pull request #1 from JanluOfficial/main
Browse files Browse the repository at this point in the history
Retheming and system.version()
  • Loading branch information
MTSyntho authored Dec 10, 2024
2 parents 3eed2a2 + da39e78 commit 7ab3e1f
Show file tree
Hide file tree
Showing 10 changed files with 85 additions and 48 deletions.
12 changes: 12 additions & 0 deletions assets/logo_black.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions assets/logo_white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion libs/system/sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,4 +313,10 @@ const element = {
resolve(elementObject);
});
}
};
};

const system = {
version: () => {
return 8;
}
}
2 changes: 1 addition & 1 deletion pkgs/apps/desktop/notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

const notificationcss = (`
background-color: hsla(270, 44%, 12%, 75%);
background-color: hsla(270, 0%, 12%, 75%);
outline: 1px solid rgba(255, 255, 255, 0.125);
position: fixed;
bottom: 60px;
Expand Down
76 changes: 38 additions & 38 deletions pkgs/apps/desktop/taskbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,46 +4,46 @@
*/

const taskbarcss = (`
background-color: hsla(270, 44%, 12%, 75%);
outline: 1px solid rgba(255, 255, 255, 0.125);
/*border-radius: 4px;*/
position: fixed;
bottom: 0px;
width: 80%;
margin: 15px;
height: 45px;
padding: 0px;
left: 0;
right: 0;
margin-left: auto;
margin-right: auto;
box-shadow: 0 0 10px 2px #000000cc;
display: flex;
z-index: 50;
backdrop-filter: blur(16px) saturate(200%);
-webkit-backdrop-filter: blur(16px) saturate(180%);
border-radius: 12px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: left;
text-align: center;
background-color: hsla(270, 0%, 12%, 75%);
outline: 1px solid rgba(255, 255, 255, 0.125);
/*border-radius: 4px;*/
position: fixed;
bottom: 0px;
width: 80%;
margin: 15px;
height: 45px;
padding: 0px;
left: 0;
right: 0;
margin-left: auto;
margin-right: auto;
box-shadow: 0 0 10px 2px #000000cc;
display: flex;
z-index: 50;
backdrop-filter: blur(16px) saturate(200%);
-webkit-backdrop-filter: blur(16px) saturate(180%);
border-radius: 12px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: left;
text-align: center;
`)

const taskbarcomponent = (`
border: 0px;
border-radius: 0px;
/* width: 45px; */
height: 45px;
padding: 5px 5px;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
z-index: 50;
background: none;
border: 0;
transition-duration: 0.1s
border: 0px;
border-radius: 0px;
/* width: 45px; */
height: 45px;
padding: 5px 5px;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
z-index: 50;
background: none;
border: 0;
transition-duration: 0.1s
`)

const taskbarstart = (`
Expand Down Expand Up @@ -92,7 +92,7 @@ element.create('button', '', 'start-btn').then(elm => elm
);

element.create('img', '', '').then(elm => elm
.src('assets/logo.svg')
.src('assets/logo_white.svg')
.width(30)
.height(30)
.dropshadow('0px 4px 5px #00000050')
Expand Down
5 changes: 4 additions & 1 deletion pkgs/apps/desktop/watermark.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@
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 8<br>By AzuSystem';
watermark.innerHTML = 'AzuOS Alpha ' + systemversion + '<br>By AzuSystem';

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

win.create("sdk testing", "root2").then(win => win
.setWidth(700)
.setHeight(500)
Expand All @@ -20,7 +22,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 7', "tes").then(elm => elm
element.create('p', 'Copyright @ AzuSystem 2024 - AzuOS Alpha ' + systemversion, "tes").then(elm => elm
.window("root2")
.textalign('center')
);
4 changes: 3 additions & 1 deletion pkgs/apps/sysver.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// type: "process"
// }

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

win.create("About AzuOS", "root").then(win => win
.setWidth(700)
.setHeight(500)
Expand Down Expand Up @@ -64,7 +66,7 @@ element.create('p', 'AzuOS is an Operating System written primarily with Web Tec
.parent('contents')
);

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

Expand Down
2 changes: 1 addition & 1 deletion stylesheets/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ body {
}

.desktop {
background-image: url('../assets/wallpapers/palm tree near dome.jpg');
background-image: url('../assets/wallpapers/dark\ waves.jpg');
background-size: cover;
background-attachment: fixed;
top: 0px;
Expand Down
8 changes: 4 additions & 4 deletions stylesheets/window.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
}

.winbox {
backdrop-filter: blur(16px) saturate(180%);
-webkit-backdrop-filter: blur(16px) saturate(180%);
background-color: rgba(30, 17, 44, 0.75);
-webkit-backdrop-filter: blur(16px) /* saturate(180%) */;
backdrop-filter: blur(16px) /* saturate(180%) */;
background-color: hsla(269, 0%, 12%, 0.75);
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.125);
box-shadow: 0px 0px 30px #000000;
Expand All @@ -52,7 +52,7 @@

.wb-body {
/* set the width of window border via margin: */
background: #150d1f50;
background: hsla(267, 0%, 9%, 0.0); /* Originally 0.314 */
}

@font-face {
Expand Down

0 comments on commit 7ab3e1f

Please sign in to comment.