Ongoing work on partial desktop sharing user interface (Not yet enabled for use) - Changes the cursor to resize cursor on the border.

cusax-fix
Yana Stamcheva 15 years ago
parent 0c18b9770f
commit 30b2c5ba89

@ -14,7 +14,7 @@
id="svg2"
version="1.1"
inkscape:version="0.47 r22583"
sodipodi:docname="New document 1">
sodipodi:docname="windowResizeIcon.svg">
<defs
id="defs4">
<inkscape:perspective
@ -40,7 +40,7 @@
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.7"
inkscape:cx="480.02255"
inkscape:cx="215.73684"
inkscape:cy="899.69334"
inkscape:document-units="px"
inkscape:current-layer="layer1"
@ -69,12 +69,12 @@
inkscape:groupmode="layer"
id="layer1">
<path
style="fill:#030000;fill-opacity:1;stroke:none"
d="M 741.60714,4.2812503 387.29464,360.59375 c 1.77274,2.77846 4.88361,4.625 8.4375,4.625 l 49.875,0 300.125,-301.59375 0,-51.25 c 0,-3.3367797 -1.62759,-6.2790897 -4.125,-8.0937497 z M 745.73214,252 l 0,0 z m 0,0 -112.59375,113.21875 84.411,-0.50507 c 14.63138,-0.50508 28.18275,-13.0463 28.18275,-27.1726 l 0,-85.54108 z m -172.28125,113.21875 0,0 z m 0,0 172.28125,-175.27031 0,-63.79219 -237.90625,239.0625 65.625,0 z"
style="fill:#292929;fill-opacity:1;stroke:none"
d="m 555.89285,14.28125 -354.3125,356.3125 c 1.77274,2.77846 4.88361,4.625 8.4375,4.625 l 49.875,0 300.125,-301.59375 0,-51.25 c 0,-3.33678 -1.62759,-6.27909 -4.125,-8.09375 z m 4.125,247.71875 0,0 z m 0,0 -112.59375,113.21875 57.26814,-0.50507 c 20.34567,-0.50508 55.32561,-31.61773 55.32561,-51.45831 l 0,-61.25537 z m -172.28125,113.21875 0,0 z m 0,0 172.28125,-175.27031 0,-63.79219 -237.90625,239.0625 65.625,0 z"
id="rect2818"
sodipodi:nodetypes="ccccccccccccccccccccc"
inkscape:export-filename="/Users/yanastamcheva/workspace/trunk/resources/images/impl/gui/common/windowResizeIcon.png"
inkscape:export-xdpi="3.0130775"
inkscape:export-ydpi="3.0130775" />
inkscape:export-xdpi="2.5108981"
inkscape:export-ydpi="2.5108981" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 283 B

After

Width:  |  Height:  |  Size: 246 B

@ -405,7 +405,7 @@ public void paintComponent(Graphics g)
constraints.gridx = 3;
constraints.gridy = 0;
constraints.weightx = 0;
constraints.insets = new Insets(0, 0, 2, 2);
constraints.insets = new Insets(0, 0, 0, 0);
constraints.anchor = GridBagConstraints.SOUTHWEST;
buttonPanel.add(
createResizeLabel(frame, sharingRegion, buttonPanel),
@ -501,6 +501,9 @@ private static JLabel createResizeLabel(final JFrame frame,
final JComponent buttonPanel)
{
final JLabel resizeLabel = new JLabel(resizeIcon);
resizeLabel.setCursor(
Cursor.getPredefinedCursor(Cursor.SE_RESIZE_CURSOR));
resizeLabel.addMouseMotionListener(new MouseMotionAdapter()
{
public void mouseDragged(MouseEvent e)

Loading…
Cancel
Save