Skip to content

Commit

Permalink
Increase tooltip border radius on macOS and Windows 11
Browse files Browse the repository at this point in the history
  • Loading branch information
weisJ committed Jan 3, 2022
1 parent 37de65d commit 212b006
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ public DarkTooltipBorder() {
bubbleBorder.setThickness(1);
bubbleBorder.setPointerSize(8);
bubbleBorder.setPointerWidth(12);
int borderRadius = UIManager.getInt("Tooltip.borderRadius");
bubbleBorder.setRadius(borderRadius);
bubbleBorder.setPointerSide(Alignment.CENTER);
int shadowSize = UIManager.getInt("ToolTip.shadowSize");
float opacity = UIManager.getInt("ToolTip.shadowOpacity") / 100.0f;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MIT License
#
# Copyright (c) 2019-2021 Jannis Weis
# Copyright (c) 2019-2022 Jannis Weis
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -30,13 +30,14 @@ ScrollBar.macos.hideScrollBar = false
ScrollBar.macos.hideDelay = 1200

TooltipUI = com.github.weisj.darklaf.ui.tooltip.DarkMacTooltipUI
Tooltip.borderRadius = 10
ToolTip.paintShadow = false

Table.alternateRowColor = true
Tree.alternateRowColor = true
List.alternateRowColor = true
FileChooser.listViewWindowsStyle = false
PopupMenu.defaultLightWeightPopups = false
ToolTip.paintShadow = false

InternalFrame.icon = navigation/arrow/thick/arrowDown.svg[themed]
InternalFrame.useExternalMenuBar = true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MIT License
#
# Copyright (c) 2021 Jannis Weis
# Copyright (c) 2021-2022 Jannis Weis
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
Expand All @@ -27,3 +27,4 @@ ScrollBar.width = 12
ScrollBar.minimumWidth = 3
ScrollBar.windows11.hideScrollBar = true
ScrollBar.windows11.hideDelay = 1200
Tooltip.borderRadius = 10
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MIT License
#
# Copyright (c) 2019-2021 Jannis Weis
# Copyright (c) 2019-2022 Jannis Weis
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -33,6 +33,7 @@ ToolTip.borderShadowColor = %shadow
ToolTip.paintShadow = true
ToolTip.shadowOpacity = %shadowOpacityStrong
ToolTip.shadowSize = 12
Tooltip.borderRadius = 5
ToolTip.borderInsets = 5,10,5,10
ToolTip.plainInsets = 2,5,2,5
ToolTip.defaultStyle = plain

0 comments on commit 212b006

Please sign in to comment.