Skip to content

Commit 54dbff8

Browse files
committed
ui rework in progress
1 parent 6d945f6 commit 54dbff8

24 files changed

+36
-28
lines changed

app/src/processing/app/Editor.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ public abstract class Editor extends JFrame implements RunnerListener {
5151
protected EditorState state;
5252
protected Mode mode;
5353

54-
static final int LEFT_GUTTER = 60;
55-
static final int RIGHT_GUTTER = 26;
54+
static public final int LEFT_GUTTER = 44;
55+
static public final int RIGHT_GUTTER = 20;
56+
static public final int GUTTER_MARGIN = 3;
57+
5658

5759
// Otherwise, if the window is resized with the message label
5860
// set to blank, its preferredSize() will be fuckered

app/src/processing/app/EditorButton.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
abstract public class EditorButton extends JComponent
3030
implements MouseListener, MouseMotionListener, ActionListener {
31-
static public final int DIM = 46;
31+
static public final int DIM = 35;
3232

3333
/** Button's description. */
3434
protected String title;

app/src/processing/app/EditorHeader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*/
3838
public class EditorHeader extends JComponent {
3939
// height of this tab bar
40-
static final int HIGH = 36;
40+
static final int HIGH = 30;
4141
// standard UI sizing (OS-specific, but generally consistent)
4242
// static final int SCROLLBAR_WIDTH = 16;
4343
// amount of space on the left edge before the tabs start

app/src/processing/app/EditorToolbar.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@
3838
abstract public class EditorToolbar extends JPanel {
3939
// haven't decided how to handle this/how to make public/consistency
4040
// for components/does it live in theme.txt
41-
static final int HIGH = 80;
42-
// gap between buttons
43-
static final int GAP = 8;
41+
static final int HIGH = 53;
42+
// horizontal gap between buttons
43+
static final int GAP = 9;
4444
// gap from the run button to the sketch label
45-
static final int LABEL_GAP = 18;
45+
static final int LABEL_GAP = GAP;
4646

4747
protected Editor editor;
4848
protected Base base;
1.65 KB
Loading
3.57 KB
Loading
1.59 KB
Loading
3.61 KB
Loading
933 Bytes
Loading
2.48 KB
Loading

0 commit comments

Comments
 (0)