sync
This commit is contained in:
parent
cd627b03ae
commit
86bb37944c
@ -31,6 +31,7 @@ main {
|
||||
bottom: 0px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
app-region: drag;
|
||||
}
|
||||
|
||||
@ -42,6 +43,7 @@ main > nav {
|
||||
margin-left: 1rem;
|
||||
width: 20%;
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
background-color: #3e3e3ee6;
|
||||
}
|
||||
|
||||
@ -416,6 +418,26 @@ div.loader > div.full > div.loading {
|
||||
display: none;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
/* Chrome-specific scrollbar styling */
|
||||
::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: rgba(0, 0, 0, 0.1); /* Slightly visible track for better contrast */
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: #2E8B57;
|
||||
border-radius: 4px; /* Rounded edges for a modern look */
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: #39aa6d;
|
||||
}
|
||||
|
||||
@keyframes animateLoadingEffect {
|
||||
0% {
|
||||
transform: translateX(-100%);
|
||||
|
||||
27
main.js
27
main.js
@ -202,6 +202,16 @@ async function checkCoutdown(uuid) {
|
||||
}
|
||||
}
|
||||
|
||||
function writeOculusConfigFile(filePath) {
|
||||
const oculusProperties = properties.parse(fs.readFileSync(filePath).toString())
|
||||
if (data.args.boolean) {
|
||||
properties.setProperty(oculusProperties, "shaderPack", "Sildurs_Vibrant_Shaders_v1.50_Medium.zip")
|
||||
} else {
|
||||
properties.setProperty(oculusProperties, "shaderPack", "")
|
||||
}
|
||||
fs.writeFileSync(filePath, properties.stringify(oculusProperties))
|
||||
}
|
||||
|
||||
app.whenReady().then(() => {
|
||||
createDefaultWindow()
|
||||
app.on("activate", async () => {
|
||||
@ -353,17 +363,22 @@ ipcMain.on("call", async (event, data) => {
|
||||
launcherWindow.webContents.openDevTools()
|
||||
break
|
||||
case "oculus::defaultshaderset":
|
||||
const oculusProperties = properties.parse(fs.readFileSync(path.join(app.getPath("appData"), ".catboat", "config", "oculus.properties")).toString())
|
||||
if (data.args.boolean) {
|
||||
properties.setProperty(oculusProperties, "shaderPack", "Sildurs_Vibrant_Shaders_v1.50_Medium.zip")
|
||||
const filePath = path.join(app.getPath("appData"), ".catboat", "config", "oculus.properties")
|
||||
if (fs.existsSync(filePath)) {
|
||||
writeOculusConfigFile(filePath)
|
||||
} else {
|
||||
properties.setProperty(oculusProperties, "shaderPack", "")
|
||||
fs.copyFileSync(path.join(__dirname, "oculus.properties"), filePath)
|
||||
writeOculusConfigFile(filePath)
|
||||
}
|
||||
fs.writeFileSync(path.join(app.getPath("appData"), ".catboat", "config", "oculus.properties"), properties.stringify(oculusProperties))
|
||||
break
|
||||
case "oculus::getdefaultshaderset":
|
||||
const $oculusProperties = properties.parse(fs.readFileSync(path.join(app.getPath("appData"), ".catboat", "config", "oculus.properties")).toString())
|
||||
const $filePath = path.join(app.getPath("appData"), ".catboat", "config", "oculus.properties")
|
||||
if (fs.existsSync(filePath)) {
|
||||
const $oculusProperties = properties.parse(fs.readFileSync($filePath).toString())
|
||||
launcherWindow.webContents.send("Response<oculus::getdefaultshaderset>", properties.getProperty($oculusProperties, "shaderPack") == "Sildurs_Vibrant_Shaders_v1.50_Medium.zip" ? true : false) } else {
|
||||
const $oculusProperties = properties.parse(fs.readFileSync($filePath).toString())
|
||||
launcherWindow.webContents.send("Response<oculus::getdefaultshaderset>", properties.getProperty($oculusProperties, "shaderPack") == "Sildurs_Vibrant_Shaders_v1.50_Medium.zip" ? true : false)
|
||||
}
|
||||
break
|
||||
}
|
||||
})
|
||||
|
||||
@ -90,5 +90,6 @@ async function getPath(customExtractPath) {
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
main
|
||||
main,
|
||||
getPath
|
||||
}
|
||||
8
oculus.properties
Normal file
8
oculus.properties
Normal file
@ -0,0 +1,8 @@
|
||||
#This file stores configuration options for Oculus, such as the currently active shaderpack
|
||||
#Sun May 11 07:39:36 CEST 2025
|
||||
colorSpace=SRGB
|
||||
disableUpdateMessage=false
|
||||
enableDebugOptions=false
|
||||
maxShadowRenderDistance=32
|
||||
shaderPack=Sildurs_Vibrant_Shaders_v1.50_Medium.zip
|
||||
enableShaders=true
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "catboat-launcher",
|
||||
"version": "0.0.1-alpha",
|
||||
"version": "0.0.8-alpha",
|
||||
"description": "a simple minecraft launcher for catboat",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user