@str-public/theme-switcher 1.2.2 → 1.2.4-dev.20260411180203

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/extension.js ADDED
@@ -0,0 +1,48 @@
1
+ const vscode = require('vscode');
2
+
3
+ /**
4
+ * @param {vscode.ExtensionContext} context
5
+ */
6
+ function activate(context) {
7
+ // Create the 'Stronghold' button on the left side of the status bar
8
+ const strongholdBtn = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Left, 100);
9
+ strongholdBtn.text = "$(sun) Stronghold";
10
+ strongholdBtn.tooltip = "Click to activate the Stronghold theme";
11
+ strongholdBtn.command = "themeSwitcher.setStronghold";
12
+ strongholdBtn.show();
13
+
14
+ // Create the 'Stronghold Dusk' button next to it
15
+ const strongholdDuskBtn = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Left, 99);
16
+ strongholdDuskBtn.text = "$(moon) Stronghold Dusk";
17
+ strongholdDuskBtn.tooltip = "Click to activate the Stronghold Dusk theme";
18
+ strongholdDuskBtn.command = "themeSwitcher.setStrongholdDusk";
19
+ strongholdDuskBtn.show();
20
+
21
+ // Command execution: Update the global user settings to 'Stronghold'
22
+ let strongholdCmd = vscode.commands.registerCommand('themeSwitcher.setStronghold', () => {
23
+ vscode.workspace.getConfiguration().update(
24
+ 'workbench.colorTheme',
25
+ 'Stronghold',
26
+ vscode.ConfigurationTarget.Global
27
+ );
28
+ });
29
+
30
+ // Command execution: Update the global user settings to 'Stronghold Dusk'
31
+ let strongholdDuskCmd = vscode.commands.registerCommand('themeSwitcher.setStrongholdDusk', () => {
32
+ vscode.workspace.getConfiguration().update(
33
+ 'workbench.colorTheme',
34
+ 'Stronghold Dusk',
35
+ vscode.ConfigurationTarget.Global
36
+ );
37
+ });
38
+
39
+ // Push all disposables into the context subscriptions so they are cleaned up on deactivation
40
+ context.subscriptions.push(strongholdBtn, strongholdDuskBtn, strongholdCmd, strongholdDuskCmd);
41
+ }
42
+
43
+ function deactivate() {}
44
+
45
+ module.exports = {
46
+ activate,
47
+ deactivate
48
+ };
package/package.json CHANGED
@@ -2,8 +2,13 @@
2
2
  "name": "@str-public/theme-switcher",
3
3
  "displayName": "Custom Theme Switcher",
4
4
  "description": "Quickly switch between Stronghold and Stronghold Dusk from the status bar.",
5
- "version": "1.2.2",
5
+ "version": "1.2.4-dev.20260411180203",
6
6
  "publisher": "stronghold-systems",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/Stronghold-Systems/str-armory.git",
10
+ "directory": "str-public/packages/theme-switcher"
11
+ },
7
12
  "engines": {
8
13
  "vscode": "^1.80.0"
9
14
  },
@@ -27,10 +32,9 @@
27
32
  ]
28
33
  },
29
34
  "files": [
30
- "str-theme-switcher-1.2.0.vsix",
31
- "stronghold-theme-1.0.0.vsix"
35
+ "*.vsix"
32
36
  ],
33
37
  "publishConfig": {
34
38
  "access": "public"
35
39
  }
36
- }
40
+ }
Binary file
Binary file