Skip to content

Commit 2d0ad90

Browse files
committed
FIX: It wasn't possible to desaturate the color selected in the Edit Color menu previously; this is now fixed.
1 parent 499ce1b commit 2d0ad90

4 files changed

Lines changed: 11 additions & 13 deletions

File tree

changelog.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
# v0.9.2.1
2+
3+
FIX: It wasn't possible to desaturate the color selected in the Edit Color menu previously; this is now fixed.
4+
15
# v0.9.2
26

3-
QoL: Adding Pinboard Card. The Pinboard card allows you to pin multiple cards together, like Maps or Images before, but for a specialized card type.
4-
FIX: Some issues with card pinning.
7+
QoL: Adding Pinboard Card. The Pinboard card is just a blank card that allows you to pin multiple cards together.
8+
FIX: Some issues with card pinning and copying cards that are pinned.
59
FIX: Cards now properly are pinned when loading projects.
610
QoL: Adding keybinding shortcut to cycle capitalization for highlighted text.
711
QoL: Clicking and highlighting a word and then dragging will highlight whole words, like most text editors (there's a little work to be done here still).

contents.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ func (cc *CheckboxContents) Color() Color {
361361
if cc.Card.CustomColor != nil {
362362
color = cc.Card.CustomColor
363363
h, s, v := cc.Card.CustomColor.HSV()
364-
completedColor = NewColorFromHSV(h+0.08, s-0.2, v+0.2)
364+
completedColor = NewColorFromHSV(h+0.04, s-0.2, v+0.2)
365365
}
366366

367367
if len(cc.DependentCards()) > 0 {
@@ -636,7 +636,7 @@ func (nc *NumberedContents) Draw() {
636636
completionColor := getThemeColor(GUICompletedColor)
637637
if nc.Card.CustomColor != nil {
638638
h, s, v := nc.Card.CustomColor.HSV()
639-
completionColor = NewColorFromHSV(h+30, s-0.2, v+0.2)
639+
completionColor = NewColorFromHSV(h+0.04, s-0.2, v+0.2)
640640
}
641641

642642
nc.Card.Result.Texture.SetColorMod(completionColor.RGB())
@@ -670,7 +670,7 @@ func (nc *NumberedContents) Color() Color {
670670
if nc.Card.CustomColor != nil {
671671
color = nc.Card.CustomColor
672672
h, s, v := nc.Card.CustomColor.HSV()
673-
completedColor = NewColorFromHSV(h+30, s-0.2, v+0.2)
673+
completedColor = NewColorFromHSV(h+0.04, s-0.2, v+0.2)
674674
}
675675

676676
if !nc.Card.Properties.Get("hideMax").AsBool() && nc.PercentageComplete >= 0.99 {

gui.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3793,13 +3793,7 @@ func (cw *ColorWheel) Update() {
37933793

37943794
h := float32(mpX) / float32(cw.HueStrip.W-1)
37953795

3796-
cw.SampledHue = NewColorFromHSV(float64(h), 1, 1)
3797-
3798-
// r, g, b, _ := ColorAt(cw.HueStrip, int32(mpX), int32(mpY))
3799-
3800-
// fmt.Println(r, g, b)
3801-
3802-
// cw.SampledHue = NewColor(r, g, b, 255)
3796+
cw.SampledHue = NewColorFromHSV(float64(h), float64(mpY)/float64(cw.HueStrip.H-1), 1)
38033797

38043798
if cw.OnColorChange != nil {
38053799
cw.OnColorChange()

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func init() {
5353

5454
runtime.LockOSThread()
5555

56-
globals.Version = semver.MustParse("0.9.2")
56+
globals.Version = semver.MustParse("0.9.3")
5757
globals.Keyboard = NewKeyboard()
5858
globals.Mouse = NewMouse()
5959
nm := NewMouse()

0 commit comments

Comments
 (0)