mirror of
https://github.com/elementary/gala.git
synced 2024-11-27 15:45:31 +03:00
minor tweaks to confirmation progress bar appearance
This commit is contained in:
parent
8175fdf04b
commit
0c9a89a8e7
@ -51,7 +51,7 @@ namespace Gala.Plugins.Notify
|
||||
content_height = ICON_SIZE;
|
||||
}
|
||||
|
||||
const int PROGRESS_HEIGHT = 12;
|
||||
const int PROGRESS_HEIGHT = 6;
|
||||
|
||||
public override void draw_content (Cairo.Context cr)
|
||||
{
|
||||
@ -60,7 +60,7 @@ namespace Gala.Plugins.Notify
|
||||
|
||||
var x = MARGIN + PADDING + ICON_SIZE + SPACING;
|
||||
var y = MARGIN + PADDING + (ICON_SIZE - PROGRESS_HEIGHT) / 2;
|
||||
var width = WIDTH - x - PADDING - MARGIN;
|
||||
var width = WIDTH - x - MARGIN;
|
||||
var fraction = (int) Math.floor (progress.clamp (0, 100) / 100.0 * width);
|
||||
|
||||
Granite.Drawing.Utilities.cairo_rounded_rectangle (cr, x, y, width,
|
||||
@ -84,4 +84,3 @@ namespace Gala.Plugins.Notify
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user