Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 committed Feb 24, 2024
1 parent 81f7277 commit 6c288d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
10 changes: 3 additions & 7 deletions lib/Drawing/Color.vala
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,9 @@ namespace Gala.Drawing {
* A class containing an RGBA color and methods for more powerful color manipulation.
*/
public class Color : GLib.Object, SettingsSerializable {
public const Gdk.RGBA LIGHT_BACKGROUND = { (250f / 255f), (250f / 255f), (250f / 255f), 1f};
public const Gdk.RGBA DARK_BACKGROUND = { (51f / 255f), (51f / 255f), (51f / 255f), 1f};
public const Gdk.RGBA TOOLTIP_BACKGROUND = { 0f, 0f, 0f, 1f};
public const Gdk.RGBA TOOLTIP_TEXT_COLOR = { 1f, 1f, 1f, 1f};
// public const Gdk.RGBA tooltip_background;
// public const Gdk.RGBA light_text;
// public const Gdk.RGBA dark_text;
public const Gdk.RGBA TOOLTIP_BACKGROUND = { 0, 0, 0, 1};
public const Gdk.RGBA TOOLTIP_TEXT_COLOR = { 1, 1, 1, 1};

/**
* The value of the red channel, with 0 being the lowest value and 1.0 being the greatest value.
*/
Expand Down
3 changes: 1 addition & 2 deletions src/Widgets/Tooltip.vala
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* Clutter actor to display text in a tooltip-like component.
*/
public class Gala.Tooltip : CanvasActor {
private const int MARGIN = 6;
/**
* Actor to display the Tooltip text.
*/
Expand Down Expand Up @@ -79,7 +78,7 @@ public class Gala.Tooltip : CanvasActor {
background_color.alpha
);

Drawing.Utilities.cairo_rounded_rectangle (ctx, 0, 0, width, height, 5);
Drawing.Utilities.cairo_rounded_rectangle (ctx, 0, 0, width, height, 4);
ctx.fill ();

ctx.restore ();
Expand Down

0 comments on commit 6c288d9

Please sign in to comment.