Commit graph

21 commits

Author SHA1 Message Date
Fred Kiefer
570f2b4d2a * Source/NSSwitch.m (-drawRect:): Correct drawing as suggested by Austin Clow (dr_clow@me.com). 2023-08-13 20:27:48 +02:00
Gregory John Casamento
54983cef50 Add NSEnabled decoding. it is encoded in NSControl, but is NOT used when it is decoded, so we have to retrieve the value here in NSSwitch. 2020-04-26 04:47:25 -04:00
Gregory John Casamento
d16e9769b0 Update display when setEnabled is called 2020-04-24 06:52:12 -04:00
Gregory John Casamento
39601c0960 initialize colors as Fred suggested 2020-04-24 06:20:19 -04:00
Gregory John Casamento
6c8691a082 Remove some warnings and unused functions, finish implementation of encoding. 2020-04-24 04:29:15 -04:00
Gregory John Casamento
33e2bbd1f0 Add setObject: 2020-04-24 03:32:57 -04:00
Gregory John Casamento
fdd51ae2df Add color for disabled state 2020-04-24 02:34:59 -04:00
Gregory John Casamento
f57e5184c3 Resolve theme issues, change size of knob 2020-04-22 17:34:14 -04:00
Gregory John Casamento
23ad6ba6c8 Add initWithCoder: / encodeWithCoder: 2020-04-22 05:20:04 -04:00
Gregory John Casamento
b3ac2b292b Fix issue with mouseDown: 2020-04-21 23:41:13 -04:00
Gregory John Casamento
ec3227d132 Implement setXXXValue methods and getters 2020-04-21 23:36:11 -04:00
Gregory John Casamento
0df7e5f7d7 Improve colors 2020-04-20 15:13:28 -04:00
Gregory John Casamento
d083bc061d Improve calculation for knob position when in On state 2020-04-18 11:46:34 -04:00
Gregory John Casamento
da0f7ded36 Better colors 2020-04-17 18:03:26 -04:00
Gregory John Casamento
dae6b91c99 Add target/action 2020-04-17 07:40:40 -04:00
Gregory John Casamento
bfa9f0c1c2 Add mouseDown: implementation call to super 2020-04-17 07:24:34 -04:00
Gregory John Casamento
4d7bc4435b Add mouseDown: implementation 2020-04-17 07:22:24 -04:00
Gregory John Casamento
ecc9791ecf Draw elements. 2020-04-17 06:10:04 -04:00
Gregory John Casamento
a1672a4605 Add skeleton drawing method for switch to GSThemeDrawing. 2020-04-16 12:16:30 -04:00
Gregory John Casamento
8785a1307b More initial work. 2020-04-16 11:42:21 -04:00
Gregory John Casamento
f989474735 Add NSwitch initial changes 2020-04-13 14:15:07 -04:00