Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
05a755b
Add color picker dialog
potatoes1286 Oct 6, 2024
17d5495
Improvements, formatting
potatoes1286 Oct 7, 2024
e51e670
formatting
potatoes1286 Oct 7, 2024
54a9472
remove debug writelines
potatoes1286 Oct 7, 2024
11c11ae
Remove collection literals
potatoes1286 Oct 7, 2024
2c4b49d
Add small mode; add ability to draw while picker active
potatoes1286 Oct 7, 2024
f0bf351
dotnet format
potatoes1286 Oct 7, 2024
81a1ef4
fix margin setting
potatoes1286 Oct 7, 2024
2222325
Fixes, improvements to ColorExtensions.cs
potatoes1286 Oct 11, 2024
e6394d8
Remove RgbColor; Change HsvColor to double
potatoes1286 Oct 11, 2024
317b07d
dotnet format
potatoes1286 Oct 11, 2024
7d8d0d1
Shift ColorExtensions.cs to CairoExtensions.cs
potatoes1286 Oct 11, 2024
ddd49f5
Fix bugs; add more methods to HsvColor.cs
potatoes1286 Oct 11, 2024
6cc8e6b
update test
potatoes1286 Oct 13, 2024
8ff7d65
add ColorTests.cs; improve CompareImages warning
potatoes1286 Oct 13, 2024
a9e0395
fixes; add opacity on unfocus
potatoes1286 Oct 13, 2024
bc1a4b5
improvements, formatting to HsvColor.cs, CairoExtensions.cs
potatoes1286 Oct 13, 2024
df12a8a
Merge branch 'master' into picker-2
potatoes1286 Oct 13, 2024
a49a978
Fix color picker always opening primary color; never secondary
potatoes1286 Nov 10, 2024
916d1e3
simplify handling of palette change; modify method inputs
potatoes1286 Nov 10, 2024
f3878ba
Streamline HsvColor
potatoes1286 Nov 10, 2024
8320855
Remove unnecessary code
potatoes1286 Nov 10, 2024
879330b
Merge remote-tracking branch 'origin/picker-2' into picker-2
potatoes1286 Nov 10, 2024
dc0bfd7
change vars to private/properties; change colorpickerslider constructor
potatoes1286 Dec 14, 2024
917406e
misc cleanup
potatoes1286 Dec 14, 2024
b5c4f69
merge WidgetExtensions into GtkExtensions
potatoes1286 Dec 14, 2024
1b57df9
dotnet format
potatoes1286 Dec 14, 2024
9c386b7
add icon, tooltip, shortcut, misc
potatoes1286 Dec 14, 2024
75007ac
remove erroring using
potatoes1286 Dec 14, 2024
a069ff4
add the actual icon
potatoes1286 Dec 14, 2024
2a775ec
improve color surface drawing
potatoes1286 Dec 19, 2024
f8b9ace
merge setup into constructor; remove add alpha checkbox
potatoes1286 Dec 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix margin setting
  • Loading branch information
potatoes1286 committed Oct 7, 2024
commit 81a1ef47b16985f6b3f457fd09d7abaf04bbcde1
4 changes: 3 additions & 1 deletion Pinta.Gui.Widgets/Widgets/ColorPickerDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ public void SetSmallMode (bool isSmallMode)
small_mode = isSmallMode;
if (isSmallMode) {
spacing = 2;
margins = 4;
margins = 6;
palette_display_size = 40;
picker_surface_radius = 75;
cps_width = 150;
Expand Down Expand Up @@ -342,6 +342,8 @@ public void SetSmallMode (bool isSmallMode)

sliders_box.Spacing = spacing;

this.GetContentAreaBox ().SetAllMargins (margins);

DefaultWidth = 1;
DefaultHeight = 1;
}
Expand Down