Skip to content

Commit

Permalink
Remove OneJS
Browse files Browse the repository at this point in the history
  • Loading branch information
AnsisMalins committed Oct 23, 2024
1 parent 9f9ea94 commit 61afd40
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 85 deletions.
12 changes: 7 additions & 5 deletions UltraStar Play/Assets/Common/Themes/ThemeManager.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
Expand Down Expand Up @@ -307,8 +307,11 @@ private void ApplyThemeStyleSheets(ThemeMeta themeMeta)

private StyleSheet LoadAndCacheStyleSheet(string styleSheetFile)
{
string styleSheetContent = File.ReadAllText(styleSheetFile);
StyleSheet styleSheet = StyleSheetUtils.CreateStyleSheet(styleSheetContent);
// This used to call into a style sheet builder that used some propriatery JavaScript thing that is
// not available. I'm leaving all the style sheet code in for now although it must be doing nothing
// because I expect we will want some sort of theme styling eventually.
StyleSheet styleSheet = new();

filePathToStyleSheet[styleSheetFile] = styleSheet;

AddStyleSheetFileSystemWatcher(styleSheetFile, styleSheet);
Expand Down Expand Up @@ -339,8 +342,7 @@ private void UpdateThemeStyleSheet(string styleSheetFile, StyleSheet styleSheet)
bool wasAdded = uiDocument.rootVisualElement.styleSheets.Contains(styleSheet);
uiDocument.rootVisualElement.styleSheets.Remove(styleSheet);

string styleSheetContent = File.ReadAllText(styleSheetFile);
StyleSheetUtils.BuildStyleSheet(styleSheet, styleSheetContent);
// There was another call to a style sheet builder here.

if (wasAdded)
{
Expand Down
24 changes: 0 additions & 24 deletions UltraStar Play/Assets/Common/UI/StyleSheetUtils.cs

This file was deleted.

3 changes: 0 additions & 3 deletions UltraStar Play/Assets/Common/UI/StyleSheetUtils.cs.meta

This file was deleted.

26 changes: 0 additions & 26 deletions UltraStar Play/Assets/OneJs/Runtime/OneJS.asmdef

This file was deleted.

7 changes: 0 additions & 7 deletions UltraStar Play/Assets/OneJs/Runtime/OneJS.asmdef.meta

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 61afd40

Please sign in to comment.