Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f9e1268

Browse files
Tosttiyenienserrano
authored andcommittedFeb 18, 2025
Change default theme (#174)
1 parent 5023eff commit f9e1268

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed
 

Diff for: ‎.github/workflows/build_and_test_workflow.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ jobs:
178178
strategy:
179179
fail-fast: false
180180
matrix:
181-
os: [ubuntu-latest, windows-latest]
182-
group: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
181+
os: [ubuntu-latest] #Removed 'windows-latest'
182+
group: [1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 13]
183183
include:
184184
- os: ubuntu-latest
185185
name: Linux

Diff for: ‎packages/osd-ui-shared-deps/theme.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export type Theme = typeof LightTheme;
3838
// in the OpenSearch Dashboards app we can rely on this global being defined, but in
3939
// some cases (like jest) the global is undefined
4040
export const tag: string = globals.__osdThemeTag__;
41-
const themeVersion = tag?.replace(/(light|dark)$/, '') || 'v8';
41+
const themeVersion = tag?.replace(/(light|dark)$/, '') || 'v7';
4242
export const version = parseInt(themeVersion.replace(/[^\d]+/g, ''), 10) || 8;
4343
export const darkMode = tag?.endsWith?.('dark');
4444

Diff for: ‎src/core/server/ui_settings/settings/theme.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const getThemeSettings = (): Record<string, UiSettingsParams> => {
6060
defaultMessage: 'Theme version',
6161
}),
6262
value:
63-
DEFAULT_THEME_VERSION === 'v8'
63+
DEFAULT_THEME_VERSION === 'v7'
6464
? themeVersionLabelMap[DEFAULT_THEME_VERSION]
6565
: DEFAULT_THEME_VERSION,
6666
type: 'select',

Diff for: ‎src/core/server/ui_settings/ui_settings_config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const deprecations: ConfigDeprecationProvider = ({ unused, renameFromRoot }) =>
3737
renameFromRoot('server.defaultRoute', 'uiSettings.overrides.defaultRoute'),
3838
];
3939

40-
export const DEFAULT_THEME_VERSION = 'v8';
40+
export const DEFAULT_THEME_VERSION = 'v7';
4141

4242
/* There are 4 levels of uiSettings:
4343
* 1) defaults hardcoded in code

0 commit comments

Comments
 (0)
Please sign in to comment.