mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
ui rework in progress
This commit is contained in:
@@ -51,8 +51,10 @@ public abstract class Editor extends JFrame implements RunnerListener {
|
||||
protected EditorState state;
|
||||
protected Mode mode;
|
||||
|
||||
static final int LEFT_GUTTER = 60;
|
||||
static final int RIGHT_GUTTER = 26;
|
||||
static public final int LEFT_GUTTER = 44;
|
||||
static public final int RIGHT_GUTTER = 20;
|
||||
static public final int GUTTER_MARGIN = 3;
|
||||
|
||||
|
||||
// Otherwise, if the window is resized with the message label
|
||||
// set to blank, its preferredSize() will be fuckered
|
||||
|
||||
@@ -28,7 +28,7 @@ import javax.swing.*;
|
||||
|
||||
abstract public class EditorButton extends JComponent
|
||||
implements MouseListener, MouseMotionListener, ActionListener {
|
||||
static public final int DIM = 46;
|
||||
static public final int DIM = 35;
|
||||
|
||||
/** Button's description. */
|
||||
protected String title;
|
||||
|
||||
@@ -37,7 +37,7 @@ import javax.swing.*;
|
||||
*/
|
||||
public class EditorHeader extends JComponent {
|
||||
// height of this tab bar
|
||||
static final int HIGH = 36;
|
||||
static final int HIGH = 30;
|
||||
// standard UI sizing (OS-specific, but generally consistent)
|
||||
// static final int SCROLLBAR_WIDTH = 16;
|
||||
// amount of space on the left edge before the tabs start
|
||||
|
||||
@@ -38,11 +38,11 @@ import javax.swing.JPopupMenu;
|
||||
abstract public class EditorToolbar extends JPanel {
|
||||
// haven't decided how to handle this/how to make public/consistency
|
||||
// for components/does it live in theme.txt
|
||||
static final int HIGH = 80;
|
||||
// gap between buttons
|
||||
static final int GAP = 8;
|
||||
static final int HIGH = 53;
|
||||
// horizontal gap between buttons
|
||||
static final int GAP = 9;
|
||||
// gap from the run button to the sketch label
|
||||
static final int LABEL_GAP = 18;
|
||||
static final int LABEL_GAP = GAP;
|
||||
|
||||
protected Editor editor;
|
||||
protected Base base;
|
||||
|
||||
Reference in New Issue
Block a user