mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IJPL-176975 Use the default font in PasswordFields
GitOrigin-RevId: 4085973c02a793634f6d65e774551469af78a9ba
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ff3091aa02
commit
5cd5b327f8
@@ -1341,9 +1341,8 @@ internal fun initFontDefaults(defaults: UIDefaults, uiFont: FontUIResource) {
|
||||
for (fontResource in patchableFontResources) {
|
||||
defaults.put(fontResource, uiFont)
|
||||
}
|
||||
if (!SystemInfoRt.isMac) {
|
||||
defaults.put("PasswordField.font", monoFont)
|
||||
}
|
||||
|
||||
defaults.put("PasswordField.font", textFont)
|
||||
defaults.put("TextArea.font", monoFont)
|
||||
defaults.put("TextPane.font", textFont)
|
||||
defaults.put("EditorPane.font", textFont)
|
||||
@@ -1382,7 +1381,6 @@ private fun installMacosXFonts(defaults: UIDefaults) {
|
||||
defaults.put("Menu.font", menuFont)
|
||||
defaults.put("MenuItem.font", menuFont)
|
||||
defaults.put("MenuItem.acceleratorFont", menuFont)
|
||||
defaults.put("PasswordField.font", defaults.getFont("TextField.font"))
|
||||
}
|
||||
|
||||
private sealed interface DefaultThemeStrategy {
|
||||
|
||||
Reference in New Issue
Block a user