mirror of
http://git.whoc.org.uk/git/password-manager.git
synced 2025-10-30 02:47:36 +01:00
Added static resources used when exiting the application
Signed-off-by: Giulio Cesare Solaroli <giulio.cesare@clipperz.com>
This commit is contained in:
@@ -25,38 +25,30 @@ refer to http://www.clipperz.com.
|
||||
|
||||
//
|
||||
// normal.js
|
||||
// normal
|
||||
// New Image
|
||||
//
|
||||
// Created by Giulio Cesare Solaroli on 3/25/10
|
||||
// Copyright 2010 Clipperz
|
||||
// Created by Giulio Cesare Solaroli on 2/13/12
|
||||
// Copyright 2012 Clipperz
|
||||
// This code was generated by Opacity. You may use or modify it in any way.
|
||||
//
|
||||
|
||||
var kClipperz_PM_UI_Canvas_Logo_normalWidth = 150.0;
|
||||
var kClipperz_PM_UI_Canvas_Logo_normalHeight = 39.0;
|
||||
|
||||
function Clipperz_PM_UI_Canvas_Logo_normal(canvas, aMainColor, aSecondaryColor)
|
||||
function Clipperz_PM_UI_Canvas_Logo_normal(canvas, logo, fontSize, text_color)
|
||||
{
|
||||
var context = canvas.getContext("2d");
|
||||
var string;
|
||||
|
||||
|
||||
canvas.width = kClipperz_PM_UI_Canvas_Logo_normalWidth;
|
||||
canvas.height = kClipperz_PM_UI_Canvas_Logo_normalHeight;
|
||||
|
||||
context.save();
|
||||
context.scale(canvas.width / kClipperz_PM_UI_Canvas_Logo_normalWidth, canvas.height / kClipperz_PM_UI_Canvas_Logo_normalHeight);
|
||||
context.clearRect(0.0, 0.0, kClipperz_PM_UI_Canvas_Logo_normalWidth, kClipperz_PM_UI_Canvas_Logo_normalHeight);
|
||||
|
||||
// clipper…
|
||||
|
||||
string = "clipper";
|
||||
context.font = "38.0pt Helvetica-Bold";
|
||||
context.fillStyle = aMainColor;
|
||||
context.fillText(string, -9.0, -9.0);
|
||||
|
||||
// …z
|
||||
|
||||
string = "z";
|
||||
context.font = "38.0pt Helvetica-Bold";
|
||||
context.fillStyle = aSecondaryColor;
|
||||
context.fillText(string, 125.0, -9.0);
|
||||
context.font = fontSize + " HelveticaNeue-Bold";
|
||||
context.fillStyle = text_color;
|
||||
context.fillText(logo, 3, 30);
|
||||
|
||||
context.restore();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user