Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit ac19411

Browse files
committed
fix: tooltip for theme switcher is annoying and not helping
I think it's pretty obvious what it is? And the tooltip, being in the corner and almost as big as the component itself, is rather annoyingly in the way more often than not.
1 parent 8b0f048 commit ac19411

File tree

1 file changed

+2
-11
lines changed
  • plugins/plugin-client-common/src/components/Client/StatusStripe

1 file changed

+2
-11
lines changed

plugins/plugin-client-common/src/components/Client/StatusStripe/Settings.tsx

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@
1515
*/
1616

1717
import React from 'react'
18-
import { encodeComponent, Events, i18n, pexecInCurrentTab, Settings as Setting, Themes, Util } from '@kui-shell/core'
18+
import { encodeComponent, Events, pexecInCurrentTab, Settings as Setting, Themes, Util } from '@kui-shell/core'
1919

2020
import DropdownWidget, { Props as DropdownWidgetProps } from './DropdownWidget'
2121

22-
const strings = i18n('plugin-client-common')
23-
2422
type Props = Pick<DropdownWidgetProps, 'position'>
2523

2624
interface State {
@@ -67,13 +65,6 @@ export default class Settings extends React.PureComponent<Props, State> {
6765
return <React.Fragment />
6866
}
6967

70-
return (
71-
<DropdownWidget
72-
noPadding
73-
id="kui--settings-widget"
74-
title={strings('Switch theme')}
75-
actions={this.state.actions}
76-
/>
77-
)
68+
return <DropdownWidget noPadding id="kui--settings-widget" actions={this.state.actions} />
7869
}
7970
}

0 commit comments

Comments
 (0)