Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1716 Add KDE-Oxygen banner style

KeePass
open
nobody
5
2013-03-23
2013-03-23
No

Hi.
First of all, thank you for making a great product to use. I'm using KeePass on Linux (KDE) for years now and I still miss KDE visual integration. Would it be possible to add a KDE-Oxygen style banner to the styles collection?
I don't have any knowledge of .net but I've put together some draft code that might be of use:

OptionsForm.cs - Line 135

m_cmbBannerStyle.Items.Add("KDE-Oxygen");

BannerFactory.cs - Line 44

KDE-Oxygen = 5

BannerFactory.cs - Line 162

else if(bs == BannerStyle.KDE-Oxygen)
{
    clrStart = Color.FromArgb(250, 250, 250);
    clrEnd = Color.FromArgb(222, 219, 217);

    Rectangle rect = new Rectangle(0, 0, nWidth, nHeight);
    using(RadialGradientBrush brCarbonT = new RadialGradientBrush(
            rect, clrStart, clrEnd))
    {
        brCarbonT.GradientOrigin = new Point(nWidth / 2, 0);
        brCarbonT.GradientCenter = new Point(nWidth / 2, 0);
        brCarbonT.RadiusX = nWidth / 2;
        brCarbonT.RadiusY = nHeight;
        brCarbonT.Freeze();
        g.FillRectangle(brCarbonT, rect);
    }
}

The banner should look as the attachment.

Thank you in advance.

1 Attachments

Discussion