mirror of https://github.com/weisJ/darklaf.git
Browse Source
Fixed some behaviour for color cell editor. Fixed selection painting when grid is disabled.pull/1/head
weisj
5 years ago
20 changed files with 266 additions and 208 deletions
@ -1,8 +1,10 @@
|
||||
package com.weis.darklaf.util; |
||||
package com.weis.darklaf.components; |
||||
|
||||
import com.bulenkov.iconloader.util.SystemInfo; |
||||
import com.weis.darklaf.platform.windows.WindowsFrameUtil; |
||||
import com.weis.darklaf.ui.colorchooser.ColorListener; |
||||
import com.weis.darklaf.ui.colorchooser.ColorPipette; |
||||
import com.weis.darklaf.util.DarkUIUtil; |
||||
import org.jetbrains.annotations.NotNull; |
||||
import org.jetbrains.annotations.Nullable; |
||||
|
@ -1,6 +1,8 @@
|
||||
package com.weis.darklaf.util; |
||||
package com.weis.darklaf.components; |
||||
|
||||
import com.weis.darklaf.ui.colorchooser.ColorListener; |
||||
import com.weis.darklaf.util.GraphicsUtil; |
||||
import com.weis.darklaf.util.TimerUtil; |
||||
import org.jetbrains.annotations.NotNull; |
||||
|
||||
import javax.swing.*; |
@ -1,4 +1,4 @@
|
||||
package com.weis.darklaf.util; |
||||
package com.weis.darklaf.platform.windows; |
||||
|
||||
import com.sun.jna.LastErrorException; |
||||
import com.sun.jna.Native; |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,20 @@
|
||||
package com.weis.darklaf.ui.table; |
||||
|
||||
import com.weis.darklaf.ui.cell.DarkCellBorder; |
||||
|
||||
import javax.swing.*; |
||||
import java.awt.*; |
||||
|
||||
public class DarkTableCellFocusBorder extends DarkCellBorder { |
||||
|
||||
@Override |
||||
public void paintBorder(final Component c, final Graphics g, final int x, final int y, |
||||
final int width, final int height) { |
||||
super.paintBorder(c, g, x, y, width, height); |
||||
g.setColor(UIManager.getColor("Table.focusBorderColor")); |
||||
g.fillRect(0, 0, width - 1, 1); |
||||
g.fillRect(0, 1, 1, height - 1); |
||||
g.fillRect(1, height - 1, width - 1, 1); |
||||
g.fillRect(width - 1, 0, 1, height - 1); |
||||
} |
||||
} |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
Loading…
Reference in new issue