removed the light/dark theme code

This commit is contained in:
Shane Harris
2022-07-04 12:00:26 +02:00
parent fd364e4401
commit 629dc242fd
17 changed files with 154 additions and 195 deletions
-1
View File
@@ -22,7 +22,6 @@ export class AudicaService {
let parts = downloadUrl.split('/');
let zipPath = this.appService.path.join(this.appService.appData, this.appService.path.basename(downloadUrl));
let ws = this.appService.fs.createWriteStream(zipPath);
//let name = parts[parts.length - 1].split('.')[0];
const requestOptions = {
timeout: 30000,
'User-Agent': this.appService.getUserAgent(),
@@ -1,3 +1,3 @@
<div class="content" [ngClass]="{'content-dark-theme':appService.currentTheme === 'dark','content-light-theme':appService.currentTheme === 'light'}">
<div class="content content-dark-theme">
<router-outlet></router-outlet>
</div>
@@ -1,16 +1,13 @@
import { Component, OnInit } from '@angular/core';
import { RepoService } from '../repo.service';
import { AppService } from '../app.service';
@Component({
selector: 'app-content',
templateUrl: './content.component.html',
styleUrls: ['./content.component.css']
selector: 'app-content',
templateUrl: './content.component.html',
styleUrls: ['./content.component.css'],
})
export class ContentComponent implements OnInit {
constructor(repoService:RepoService, public appService:AppService) { }
ngOnInit() {
}
constructor(public appService: AppService) {}
ngOnInit() {}
}
@@ -1,5 +1,5 @@
<div class="container">
<h4 *ngIf="!processService.tasks.length" [ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">No tasks running...</h4>
<h4 *ngIf="!processService.tasks.length" class="text-dark-theme">No tasks running...</h4>
<div class="row" *ngIf="processService.tasks.length">
<app-current-task-item *ngFor="let task of processService.tasks;" [task]="task"></app-current-task-item>
-2
View File
@@ -1,6 +1,5 @@
import { Injectable, isDevMode } from '@angular/core';
import { AppService } from './app.service';
import { RepoService } from './repo.service';
import { StatusBarService } from './status-bar.service';
import { LoadingSpinnerService } from './loading-spinner.service';
import { AdbClientService } from './adb-client.service';
@@ -19,7 +18,6 @@ export class ElectronService {
isInstallingLauncher: boolean;
constructor(
private appService: AppService,
private repoService: RepoService,
private statusService: StatusBarService,
private spinnerService: LoadingSpinnerService,
private adbService: AdbClientService,
@@ -10,21 +10,18 @@
</div>
<div class="container files-section">
<div *ngIf="!isConnected()">
<h4
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<h4 class="text-dark-theme">
No device connected yet...</h4>
</div>
<div *ngIf="isConnected()">
<div *ngIf="!files.length">
<h4
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<h4 class="text-dark-theme">
No files here...</h4>
<div class="grey-text">{{this.currentPath}}</div>
</div>
<div *ngFor="let file of files" class="cursor"
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<div *ngFor="let file of files" class="cursor text-dark-theme">
<div class="file" (click)="selectFile($event, file); $event.stopPropagation()">
<div class="right">
<span *ngIf="file.icon !== 'folder'">{{file.size|number:'1.2-2'}}MB | </span>{{file.time|date:'short'}}
@@ -37,8 +34,7 @@
(click)="filesToBeDeleted = [file]; confirmModal.openModal()">close</i>
</div>
<div>
<i class="material-icons medium left "
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">{{file.icon}}</i>
<i class="material-icons medium left text-dark-theme">{{file.icon}}</i>
<div class="filename-padding-top">{{file.name}}</div>
</div>
</div>
@@ -4,7 +4,6 @@ import { AppService, FolderType } from '../app.service';
import { WebviewService } from '../webview.service';
import { LoadingSpinnerService } from '../loading-spinner.service';
import { StatusBarService } from '../status-bar.service';
import { RepoService } from '../repo.service';
import { BeatOnService } from '../beat-on.service';
import { DragAndDropService } from '../drag-and-drop.service';
import { Router } from '@angular/router';
+1 -1
View File
@@ -1 +1 @@
<span class="link" [ngClass]="{'link-white':appService.currentTheme === 'dark' && !isDark}" (click)="open()">{{text}}</span>
<span class="link link-white" (click)="open()">{{text}}</span>
@@ -1,5 +1,4 @@
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { RepoService } from '../repo.service';
@Component({
selector: 'app-package-item',
@@ -7,9 +6,9 @@ import { RepoService } from '../repo.service';
styleUrls: ['./package-item.component.css'],
})
export class PackageItemComponent implements OnInit {
@Input('package') package: any;
@Output('settings') settings = new EventEmitter();
constructor(public repoService: RepoService) {}
@Input() package: any;
@Output() settings = new EventEmitter();
constructor() {}
ngOnInit() {}
@@ -1,12 +1,12 @@
import { Injectable } from '@angular/core';
import { AppService } from './app.service';
import { AppService } from '../app.service';
@Injectable({
providedIn: 'root',
})
export class RepoService {
export class PackageService {
allApps: any = {};
indexUrl: string = 'https://the-expanse.github.io/SideQuestRepos/';
indexUrl = 'https://the-expanse.github.io/SideQuestRepos/';
constructor(private appService: AppService) {
this.getAppIndex();
}
@@ -1,8 +1,7 @@
<div class="container">
<div *ngIf="!isConnected()">
<h4
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<h4 class="text-dark-theme">
No device connected...</h4>
</div>
<div *ngIf="isConnected()">
@@ -5,7 +5,7 @@ import { LoadingSpinnerService } from '../loading-spinner.service';
import { StatusBarService } from '../status-bar.service';
import { ActivatedRoute, NavigationEnd, Router } from '@angular/router';
import { Subscription } from 'rxjs/Subscription';
import { RepoService } from '../repo.service';
import { PackageService } from './package.service';
@Component({
selector: 'app-packages',
@@ -37,7 +37,7 @@ export class PackagesComponent implements OnInit {
public appService: AppService,
public spinnerService: LoadingSpinnerService,
public statusService: StatusBarService,
private repoService: RepoService,
private packageService: PackageService,
router: Router,
route: ActivatedRoute
) {
@@ -141,10 +141,10 @@ export class PackagesComponent implements OnInit {
.then(() => {
this.myApps = this.adbService.devicePackages
.map(p => {
if (this.repoService.allApps[p]) {
if (this.packageService.allApps[p]) {
return {
name: this.repoService.allApps[p].name,
icon: this.repoService.allApps[p].icon,
name: this.packageService.allApps[p].name,
icon: this.packageService.allApps[p].icon,
packageName: p,
};
}
-12
View File
@@ -1,12 +0,0 @@
import { TestBed } from '@angular/core/testing';
import { RepoService } from './repo.service';
describe('RepoService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
it('should be created', () => {
const service: RepoService = TestBed.get(RepoService);
expect(service).toBeTruthy();
});
});
+16 -16
View File
@@ -1,6 +1,6 @@
<div class="row">
<div class="col s12 m6">
<div class="setup-content" [ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<div class="setup-content text-dark-theme">
<div class="section-title">
Step 1: Create Organisation
</div>
@@ -17,7 +17,7 @@
</div>
</div>
<div class="col s12 m6">
<div class="setup-content" [ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<div class="setup-content text-dark-theme">
<div class="section-title">
Step 2: Install Drivers ( Windows Only - skip this on Mac / Linux )
</div>
@@ -38,7 +38,7 @@
<div class="clear-fix"></div>
<div class="row">
<div class="col s12 m6">
<div class="setup-content" [ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<div class="setup-content text-dark-theme">
<div class="section-title">
Step 3: Enable Developer Mode and Reboot
</div>
@@ -53,7 +53,7 @@
</div>
</div>
<div class="col s12 m6">
<div class="setup-content" [ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<div class="setup-content text-dark-theme">
<div class="section-title">
Step 4: Connect USB Cable and Allow USB Debugging
</div>
@@ -71,25 +71,25 @@
<div class="clear-fix"></div>
<div class="row">
<div class="col s12">
<div class="setup-content" [ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<div class="section-title" [ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<div class="setup-content text-dark-theme">
<div class="section-title">
Step 5: Install App Launcher
</div>
<div [ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<div class="text-dark-theme">
Install a launcher to make finding apps easier on your headset. This launcher will be found in
the library under 'Unknown Sources' on the menu on the left. Open it to find all the apps that
have been installed on your device.
</div><br>
<span class="chip" *ngIf="isLauncherInstalled()">SideQuest Launcher Installed!</span>
<app-loading-spinner-small *ngIf="isInstallingLauncher"></app-loading-spinner-small>
<div class="waves-effect waves-light btn pink-button"
<div class="waves-effect waves-light btn pink-button button-dark-theme"
*ngIf="!isInstalledLauncher&&!isInstallingLauncher"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="installLauncher()">
Install App Launcher
</div>
<br><br>
<div [ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<div class="text-dark-theme">
You will then be able to install apps to your headset and open them from the launcher. You can
find it in the side menu of the library under the Unknown Sources section called
<span class="chip">SideQuest - TV</span> and <span class="chip">SideQuest - Home</span>. This will show you all the apps on the device even hidden
@@ -97,16 +97,16 @@
</div><br>
<span class="chip" *ngIf="isExpanseInstalled()">The Expanse VR Installed!</span>
<app-loading-spinner-small *ngIf="isInstallingExpanse"></app-loading-spinner-small>
<div class="waves-effect waves-light btn pink-button"
<div class="waves-effect waves-light btn pink-button button-dark-theme"
*ngIf="!isInstalledExpanse&&!isInstallingExpanse"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="installExpanse()">
Install Your First App - The Expanse
</div><br><br>
<div [ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<div class="text-dark-theme">
If you want to install your own APK files just drag and drop them over this window.
</div>
<div [ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<div class="text-dark-theme">
Check your antivirus hasn't blocked some parts of the ADB download - this has happened for some
with Avast antivirus in particular. <br />If you have any problems or want to say hi drop us a
line on discord - <app-link url="https://discord.gg/HNnDPSu" text="discord"></app-link>.
@@ -117,10 +117,10 @@
<div class="clear-fix"></div>
<div class="row" style="display: none;">
<div class="col s12">
<div class="section-title" [ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<div class="section-title text-dark-theme">
App Developers Link to your apps!
</div>
<div style="text-align: center" [ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<div style="text-align: center" class="text-dark-theme">
Use our custom protocol to be able to install APK files, add repos and even load custom beat
saber songs direct from your website.
</div>
+112 -126
View File
@@ -1,130 +1,121 @@
<div class="container"
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<div class="container text-dark-theme">
<div class="side-quest-version">
SideQuest Version: {{appService.versionName}}
</div>
<div class="row">
<div class="col s12">
<div class="section-title"
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<div class="section-title text-dark-theme">
SideQuest Folders</div>
<div class="button-section">
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="appService.openFolder(folder.MAIN)">
Open Main App Folder
</div>
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="appService.openFolder(folder.APK_BACKUPS)">
Open APK Backup Folder
</div>
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="appService.openFolder(folder.ADB)">
Open ADB Folder
</div>
</div>
<div class="section-title"
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<div class="section-title text-dark-theme">
Proximity Sensor</div>
This disables the proximity sensor effectively keeping your quest awake when not on your head ( requires restart to disable ).
<div class="button-section">
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="disableProximity()">Disable</div>
</div>
<div class="section-title"
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<div class="section-title text-dark-theme">
Experimental Mode</div>
This enables experimental features in your Oculus Quest such as Passthrough API support ( requires guardian to be enabled ).
<div class="button-section">
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setExperimental(EXP.On)">On</div>
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setExperimental(EXP.Off)">Off</div>
</div>
<div class="section-title"
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<div class="section-title text-dark-theme">
Refresh Rate</div>
This will allow you to change to 90Hz refresh rate for 90fps support in games on Quest 2.<br>
WARNING: This does not work in all games, and does not work with Oculus Link. This setting may also reset to default when you restart your headset. You may need to press the power button twice to turn the screen off and on to enable this setting for apps that dont have it natively enabled.
<div class="button-section">
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setRR(RR._72)">Default</div>
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setRR(RR._60)">60Hz</div>
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setRR(RR._72)">72Hz</div>
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setRR(RR._90)">90Hz</div>
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setRR(RR._120)">120Hz</div>
</div>
<div class="section-title"
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<div class="section-title text-dark-theme">
Chromatic Aberration</div>
This will enable/disable chromatic aberration.
<div class="button-section">
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setCa(CA.APP)">Default</div>
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setCa(CA.APP)">App Selected</div>
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setCa(CA.ON)">On</div>
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setCa(CA.OFF)">Off</div>
</div>
<div class="section-title"
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<div class="section-title text-dark-theme">
Guardian</div>
This will enable/disable the guardian.
<div class="button-section">
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setGuardian(GU.ON)">ON</div>
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setGuardian(GU.OFF)">OFF</div>
</div>
<div class="section-title"
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<div class="section-title text-dark-theme">
Full Rate Capture</div>
This will enable/disable the full rate capture for videos recorded i.e. 60/72fps rather than 30fps.
<div class="button-section">
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setFullRate(GU.ON)">ON</div>
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-ca margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setFullRate(GU.OFF)">OFF</div>
</div>
<div class="section-title"
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<div class="section-title text-dark-theme">
Paste Text to your device</div>
If there is a text input field focussed on your headset you can paste / type text in here to have SideQuest type
it out on your headset. Good for long passwords you don't want to have to type on a virtual keyboard.
<div class="button-section">
<div class="input-field ">
<input id="devicePaste"
[ngClass]="{'input-dark-theme':appService.currentTheme === 'dark','input-light-theme':appService.currentTheme === 'light'}"
class="input-dark-theme"
[type]="isPassword?'password':'text'" [(ngModel)]="textToSend" />
<label for="devicePaste"
[ngClass]="{'label-dark-theme':appService.currentTheme === 'dark','label-light-theme':appService.currentTheme === 'light'}">Text
class="label-dark-theme">Text
to Paste</label>
</div>
<div class="switch">
@@ -136,133 +127,128 @@
</label>
</div>
<div class="waves-effect waves-light btn paste-text-button right pink-button" (click)="pasteToDevice()"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}">
[ngClass]="{'waves-dark':true,'waves-light':false}">
Send</div>
</div>
<br><br>
<div class="section-title"
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<div class="section-title text-dark-theme">
Set FFR ( Fixed Foveated Rendering ) level
</div>
This will change how the view is rendered in the outer edges of the viewscreen for each eye. Higher is better
performance, lower is better quality. This gets reset when you reboot the device.
<div class="button-section">
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setFFR(FFR.MEDIUM)">Default</div>
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setFFR(FFR.OFF)">Off</div>
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setFFR(FFR.LOW)">Low</div>
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setFFR(FFR.MEDIUM)">Medium</div>
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setFFR(FFR.HIGH)">High</div>
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setFFR(FFR.HIGH_TOP)">High Top</div>
</div>
<div class="section-title"
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<div class="section-title text-dark-theme">
Set Video Capture Size</div>
This changes the resolution of captured videos on the Quest
<div class="button-section">
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setCR(CR._480)">480</div>
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setCR(CR._720)">720</div>
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setCR(CR._1080)">1080</div>
</div>
<div class="section-title"
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<div class="section-title text-dark-theme">
Set CPU and GPU level</div>
This can improve performance for 2D apps & games.
<div class="button-section">
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setGPU(GPU._2)">Default</div>
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setGPU(GPU._2)">Level 2</div>
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setGPU(GPU._4)">Level 4</div>
</div>
<div class="section-title"
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<div class="section-title text-dark-theme">
Default Texture Size</div>
This will change how high quality some of the in game textures are rendered at.
<div class="button-section">
<div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setSSO(SSO._Go)">Default - Oculus Go</div>
<div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setSSO(SSO._Quest1)">Default - Oculus Quest</div>
<div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setSSO(SSO._Quest2)">Default - Oculus Quest 2</div><br>
<div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setSSO(SSO._512)">512</div>
<div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setSSO(SSO._768)">768</div>
<div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setSSO(SSO._1024)">1024</div>
<div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setSSO(SSO._1280)">1280</div>
<div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setSSO(SSO._1536)">1536</div>
<div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setSSO(SSO._2048)">2048</div>
<div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setSSO(SSO._2560)">2560</div>
<div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-sso margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setSSO(SSO._3072)">3072</div>
</div>
<div class="section-title"
[ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">
<div class="section-title text-dark-theme">
Capture Video Bitrate ( Go Only )</div>
This will increase the quality of captured videos on Oculus Go.
<div class="button-section">
<div class="waves-effect waves-light btn set-svb margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-svb margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setSVB(SVB._5Mbps)">Default</div>
<div class="waves-effect waves-light btn set-svb margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-svb margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setSVB(SVB._5Mbps)">5Mbps</div>
<div class="waves-effect waves-light btn set-svb margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-svb margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setSVB(SVB._15Mbps)">15Mbps</div>
<div class="waves-effect waves-light btn set-svb margin-bottom margin-right pink-button"
[ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}"
<div class="waves-effect waves-light btn set-svb margin-bottom margin-right pink-button button-dark-theme"
[ngClass]="{'waves-dark':true,'waves-light':false}"
(click)="setSVB(SVB._25Mbps)">25Mbps</div>
</div>
<!-- <div class="section-title" [ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">Video Recording Resolution ( Go Only )</div>-->
<!-- This will increase the resolution of captured videos on Oculus Go.-->
<!-- <div class="button-section">-->
<!-- <div class="waves-effect waves-light btn set-svr margin-bottom margin-right pink-button"-->
<!-- [ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}" (click)="setSVR(SVR._1024)">Default</div>-->
<!-- [ngClass]="{'waves-dark':true,'waves-light':false}" (click)="setSVR(SVR._1024)">Default</div>-->
<!-- <div class="waves-effect waves-light btn set-svr margin-bottom margin-right pink-button"-->
<!-- [ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}" (click)="setSVR(SVR._1024)">1024</div>-->
<!-- [ngClass]="{'waves-dark':true,'waves-light':false}" (click)="setSVR(SVR._1024)">1024</div>-->
<!-- <div class="waves-effect waves-light btn set-svr margin-bottom margin-right pink-button"-->
<!-- [ngClass]="{'button-dark-theme':appService.currentTheme === 'dark','button-light-theme':appService.currentTheme === 'light','waves-dark':true,'waves-light':false}" (click)="setSVR(SVR._1536)">1536</div>-->
<!-- [ngClass]="{'waves-dark':true,'waves-light':false}" (click)="setSVR(SVR._1536)">1536</div>-->
<!-- </div>-->
<!-- <div class="section-title" [ngClass]="{'text-dark-theme':appService.currentTheme === 'dark','text-light-theme':appService.currentTheme === 'light'}">Destroy The World</div>-->
<!-- Click this to release all the goblins and endanger the future of humanity. Do not do this!-->
+1 -3
View File
@@ -3,7 +3,6 @@ import { AppService, FolderType } from '../app.service';
import { AdbClientService } from '../adb-client.service';
import { LoadingSpinnerService } from '../loading-spinner.service';
import { StatusBarService } from '../status-bar.service';
import { RepoService } from '../repo.service';
enum FFR {
OFF,
LOW,
@@ -88,8 +87,7 @@ export class ToolsComponent implements OnInit {
public appService: AppService,
public adbService: AdbClientService,
private spinnerService: LoadingSpinnerService,
private statusService: StatusBarService,
public repoService: RepoService
private statusService: StatusBarService
) {
this.appService.resetTop();
appService.webService.isWebviewOpen = false;