Skip to content

Commit 25ee667

Browse files
author
Gianluca Carnielli
committed
Restructured project into folders.
1 parent 0c12e2d commit 25ee667

File tree

55 files changed

+64
-15
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+64
-15
lines changed

Example.mlx

-161 Bytes
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.

button.html renamed to code/button.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
3-
<link rel="stylesheet" href="button.css"/>
4-
<script src="button.js"></script>
3+
<link rel="stylesheet" href="css/button.css"/>
4+
<script src="js/button.js"></script>
55
<body id="htmlBody">
66
<button id="b">Button</button>
77
</body>
File renamed without changes.
File renamed without changes.

jsbutton.m renamed to code/jsbutton.m

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,30 @@
88
end % events (HasCallbackProperty, NotifyAccess = private)
99

1010
properties
11-
BorderBottomColor matlab.internal.datatype.matlab.graphics.datatype.RGBColor = [.5 .5 .5]
12-
BorderLeftColor matlab.internal.datatype.matlab.graphics.datatype.RGBColor = [.5 .5 .5]
13-
BorderRightColor matlab.internal.datatype.matlab.graphics.datatype.RGBColor = [.5 .5 .5]
14-
BorderTopColor matlab.internal.datatype.matlab.graphics.datatype.RGBColor = [.5 .5 .5]
11+
BorderBottomColor {validatecolor} = [.5 .5 .5]
12+
BorderLeftColor {validatecolor} = [.5 .5 .5]
13+
BorderRightColor {validatecolor} = [.5 .5 .5]
14+
BorderTopColor {validatecolor} = [.5 .5 .5]
1515
BorderBottomThickness (1,1) double {mustBeNonnegative} = 1
1616
BorderLeftThickness (1,1) double {mustBeNonnegative} = 1
1717
BorderRightThickness (1,1) double {mustBeNonnegative} = 1
1818
BorderTopThickness (1,1) double {mustBeNonnegative} = 1
1919
BorderRadius (1,1) double {mustBeNonnegative} = 4
20-
ButtonColor matlab.internal.datatype.matlab.graphics.datatype.RGBColor = [.96 .96 .96]
21-
ButtonBackgroundColor matlab.internal.datatype.matlab.graphics.datatype.RGBColor = [.94 .94 .94]
20+
ButtonColor {validatecolor} = [.96 .96 .96]
21+
ButtonBackgroundColor {validatecolor} = [.94 .94 .94]
2222
Enable (1,1) logical = true
23-
FontColor matlab.internal.datatype.matlab.graphics.datatype.RGBColor = "black"
23+
FontColor {validatecolor} = "black"
2424
FontName {mustBeTextScalar} = "Helvetica"
2525
FontSize (1,1) {mustBeNumeric, mustBePositive} = 12
2626
FontWeight TextFont = TextFont.normal
2727
HoverFontWeight TextFont = TextFont.normal
2828
HorizontalAlignment TextAlign = TextAlign.center
29-
HoverBorderBottomColor matlab.internal.datatype.matlab.graphics.datatype.RGBColor = [.5 .5 .5]
30-
HoverBorderLeftColor matlab.internal.datatype.matlab.graphics.datatype.RGBColor = [.5 .5 .5]
31-
HoverBorderRightColor matlab.internal.datatype.matlab.graphics.datatype.RGBColor = [.5 .5 .5]
32-
HoverBorderTopColor matlab.internal.datatype.matlab.graphics.datatype.RGBColor = [.5 .5 .5]
33-
HoverButtonColor matlab.internal.datatype.matlab.graphics.datatype.RGBColor = "white"
34-
HoverTextColor matlab.internal.datatype.matlab.graphics.datatype.RGBColor = "black"
29+
HoverBorderBottomColor {validatecolor} = [.5 .5 .5]
30+
HoverBorderLeftColor {validatecolor} = [.5 .5 .5]
31+
HoverBorderRightColor {validatecolor} = [.5 .5 .5]
32+
HoverBorderTopColor {validatecolor} = [.5 .5 .5]
33+
HoverButtonColor {validatecolor} = "white"
34+
HoverTextColor {validatecolor} = "black"
3535
HoverTextUnderline (1,1) logical = false
3636
Icon {mustBeTextScalar} = ""
3737
IconAlignment IconAlign = IconAlign.right
@@ -137,6 +137,7 @@ function update(obj)
137137

138138
function out = rgb2hex(rgb)
139139
% Convert RGB to hexadecimal representation
140+
rgb = validatecolor(rgb);
140141
hex = dec2hex(round(255*rgb));
141142
out = ['#' hex(1,:) hex(2,:) hex(3,:)];
142143
end % rgb2hex
File renamed without changes.

0 commit comments

Comments
 (0)