|
|
|
@ -1,8 +1,8 @@
|
|
|
|
|
package com.fine.theme.light.ui; |
|
|
|
|
|
|
|
|
|
import com.fine.theme.icon.LazyIcon; |
|
|
|
|
import com.fine.theme.utils.FineClientProperties; |
|
|
|
|
import com.formdev.flatlaf.ui.FlatMenuItemUI; |
|
|
|
|
import com.fr.design.editlock.EditLockUtils; |
|
|
|
|
|
|
|
|
|
import javax.swing.JComponent; |
|
|
|
|
import javax.swing.plaf.ComponentUI; |
|
|
|
@ -35,7 +35,9 @@ public class FineMenuItemUI extends FlatMenuItemUI {
|
|
|
|
|
|
|
|
|
|
Object itemType = c.getClientProperty(FineClientProperties.MENU_ITEM_TYPE); |
|
|
|
|
if (FineClientProperties.MENU_ITEM_TYPE_LOCK.equals(itemType)) { |
|
|
|
|
g.drawImage(EditLockUtils.LOCKED_IMAGE, c.getWidth() - rightMargin - iconSize, (c.getHeight() - iconSize) / 2, iconSize, iconSize, null); |
|
|
|
|
LazyIcon icon = new LazyIcon("locked"); |
|
|
|
|
|
|
|
|
|
icon.paintIcon(c, g, c.getWidth() - rightMargin - iconSize, (c.getHeight() - iconSize) / 2); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|