Update settings tab design
This commit is contained in:
parent
8c06dfbca8
commit
556f519413
7 changed files with 2321 additions and 1462 deletions
|
@ -1,16 +1,24 @@
|
||||||
Bunifu.UI.WinForms.BunifuToolTip, Bunifu.UI.WinForms.BunifuToolTip, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
|
||||||
Bunifu.UI.WinForms.BunifuLoader, Bunifu.UI.WinForms.BunifuLoader, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
|
||||||
Bunifu.UI.WinForms.BunifuButton.BunifuButton, Bunifu.UI.WinForms.BunifuButton, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
|
||||||
Bunifu.UI.WinForms.BunifuButton.BunifuIconButton, Bunifu.UI.WinForms.BunifuButton, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
|
||||||
Bunifu.UI.WinForms.BunifuDropdown, Bunifu.UI.WinForms.BunifuDropdown, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
|
||||||
Bunifu.UI.WinForms.BunifuTextBox, Bunifu.UI.WinForms.BunifuTextBox, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
|
||||||
Bunifu.UI.WinForms.BunifuPictureBox, Bunifu.UI.WinForms.BunifuPictureBox, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
|
||||||
Bunifu.UI.WinForms.BunifuButton.BunifuButton2, Bunifu.UI.WinForms.BunifuButton, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
|
||||||
Bunifu.UI.WinForms.BunifuToggleSwitch2, Bunifu.UI.WinForms.BunifuToggleSwitch, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
|
||||||
Bunifu.UI.WinForms.BunifuFormDock, Bunifu.UI.WinForms.BunifuFormDock, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
|
||||||
Bunifu.UI.WinForms.BunifuUserControl, Bunifu.UI.WinForms.BunifuUserControl, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
|
||||||
Bunifu.UI.WinForms.BunifuLabel, Bunifu.UI.WinForms.BunifuLabel, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
|
||||||
Bunifu.UI.WinForms.BunifuRadioButton, Bunifu.UI.WinForms.BunifuRadioButton, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
Bunifu.UI.WinForms.BunifuRadioButton, Bunifu.UI.WinForms.BunifuRadioButton, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
||||||
Bunifu.UI.WinForms.BunifuToggleSwitch, Bunifu.UI.WinForms.BunifuToggleSwitch, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
Bunifu.UI.WinForms.BunifuButton.BunifuButton, Bunifu.UI.WinForms.BunifuButton, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
||||||
|
Bunifu.UI.WinForms.BunifuColorTransition, Bunifu.UI.WinForms.BunifuColorTransition, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
||||||
Bunifu.UI.WinForms.BunifuImageButton, Bunifu.UI.WinForms.BunifuImageButton, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
Bunifu.UI.WinForms.BunifuImageButton, Bunifu.UI.WinForms.BunifuImageButton, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
||||||
|
Bunifu.UI.WinForms.BunifuTextBox, Bunifu.UI.WinForms.BunifuTextBox, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
||||||
|
Bunifu.UI.WinForms.BunifuButton.BunifuIconButton, Bunifu.UI.WinForms.BunifuButton, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
||||||
|
Bunifu.UI.WinForms.BunifuToggleSwitch, Bunifu.UI.WinForms.BunifuToggleSwitch, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
||||||
|
Bunifu.UI.WinForms.BunifuDropdown, Bunifu.UI.WinForms.BunifuDropdown, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
||||||
|
Bunifu.UI.WinForms.BunifuPanel, Bunifu.UI.WinForms.BunifuPanel, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
||||||
|
Bunifu.UI.WinForms.BunifuToolTip, Bunifu.UI.WinForms.BunifuToolTip, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
||||||
|
Bunifu.UI.WinForms.BunifuButton.BunifuButton2, Bunifu.UI.WinForms.BunifuButton, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
||||||
|
Bunifu.UI.WinForms.BunifuSeparator, Bunifu.UI.WinForms.BunifuSeparator, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
||||||
|
Bunifu.UI.WinForms.BunifuHSlider, Bunifu.UI.WinForms.BunifuSlider, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
||||||
Bunifu.UI.WinForms.BunifuProgressBar, Bunifu.UI.WinForms.BunifuProgressBar, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
Bunifu.UI.WinForms.BunifuProgressBar, Bunifu.UI.WinForms.BunifuProgressBar, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
||||||
|
Bunifu.UI.WinForms.BunifuPictureBox, Bunifu.UI.WinForms.BunifuPictureBox, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
||||||
|
Bunifu.UI.WinForms.BunifuLabel, Bunifu.UI.WinForms.BunifuLabel, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
||||||
|
Bunifu.UI.WinForms.BunifuUserControl, Bunifu.UI.WinForms.BunifuUserControl, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
||||||
|
Bunifu.UI.WinForms.BunifuPages, Bunifu.UI.WinForms.BunifuPages, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
||||||
|
Bunifu.UI.WinForms.BunifuVSlider, Bunifu.UI.WinForms.BunifuSlider, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
||||||
|
Bunifu.UI.WinForms.BunifuToggleSwitch2, Bunifu.UI.WinForms.BunifuToggleSwitch, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
||||||
|
Bunifu.UI.WinForms.BunifuRadialGauge, Bunifu.UI.WinForms.BunifuGauge, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
||||||
|
Bunifu.UI.WinForms.BunifuLoader, Bunifu.UI.WinForms.BunifuLoader, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
||||||
|
Bunifu.UI.WinForms.BunifuVScrollBar, Bunifu.UI.WinForms.BunifuScrollBar, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
||||||
|
Bunifu.UI.WinForms.BunifuFormDock, Bunifu.UI.WinForms.BunifuFormDock, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9
|
||||||
|
|
2
WebBrowser/frmBrowser.Designer.cs
generated
2
WebBrowser/frmBrowser.Designer.cs
generated
|
@ -280,6 +280,7 @@ namespace XeroBrowser
|
||||||
this.bunifuImageButton2.WaitOnLoad = false;
|
this.bunifuImageButton2.WaitOnLoad = false;
|
||||||
this.bunifuImageButton2.Zoom = 20;
|
this.bunifuImageButton2.Zoom = 20;
|
||||||
this.bunifuImageButton2.ZoomSpeed = 10;
|
this.bunifuImageButton2.ZoomSpeed = 10;
|
||||||
|
this.bunifuImageButton2.Click += new System.EventHandler(this.bunifuImageButton2_Click);
|
||||||
//
|
//
|
||||||
// bunifuImageButton1
|
// bunifuImageButton1
|
||||||
//
|
//
|
||||||
|
@ -396,6 +397,7 @@ namespace XeroBrowser
|
||||||
this.bunifuImageButton3.WaitOnLoad = false;
|
this.bunifuImageButton3.WaitOnLoad = false;
|
||||||
this.bunifuImageButton3.Zoom = 20;
|
this.bunifuImageButton3.Zoom = 20;
|
||||||
this.bunifuImageButton3.ZoomSpeed = 10;
|
this.bunifuImageButton3.ZoomSpeed = 10;
|
||||||
|
this.bunifuImageButton3.Click += new System.EventHandler(this.bunifuImageButton3_Click);
|
||||||
//
|
//
|
||||||
// btnRefresh
|
// btnRefresh
|
||||||
//
|
//
|
||||||
|
|
|
@ -127,7 +127,7 @@ namespace XeroBrowser
|
||||||
}
|
}
|
||||||
|
|
||||||
string[] blockedUrls = { "https://diamondcreeper.org/1337", "https://www.youtube.com/watch?v=dQw4w9WgXcQ", "https://www.youtube.com/watch?v=xm3YgoEiEDc", "https://www.youtube.com/watch?v=xvFZjo5PgG0", "https://www.youtube.com/watch?v=O91DT1pR1ew", "https://www.youtube.com/watch?v=o-YBDTqX_ZU", "https://www.youtube.com/watch?v=H8ZH_mkfPUY", "https://www.youtube.com/watch?v=o-YBDTqX_ZU", "https://www.youtube.com/watch?v=xvFZjo5PgG0" };
|
string[] blockedUrls = { "https://diamondcreeper.org/1337", "https://www.youtube.com/watch?v=dQw4w9WgXcQ", "https://www.youtube.com/watch?v=xm3YgoEiEDc", "https://www.youtube.com/watch?v=xvFZjo5PgG0", "https://www.youtube.com/watch?v=O91DT1pR1ew", "https://www.youtube.com/watch?v=o-YBDTqX_ZU", "https://www.youtube.com/watch?v=H8ZH_mkfPUY", "https://www.youtube.com/watch?v=o-YBDTqX_ZU", "https://www.youtube.com/watch?v=xvFZjo5PgG0" };
|
||||||
string[] blockedDrms = { "netflix.com", "disneyplus.com" };
|
string[] blockedDrms = { "https://www.netflix.com/", "https://www.disneyplus.com/", "https://www.twitch.tv/" };
|
||||||
|
|
||||||
if (!_isBlocked)
|
if (!_isBlocked)
|
||||||
{
|
{
|
||||||
|
@ -181,10 +181,10 @@ namespace XeroBrowser
|
||||||
|
|
||||||
private void chromiumWebBrowser1_LoadError(object sender, LoadErrorEventArgs e)
|
private void chromiumWebBrowser1_LoadError(object sender, LoadErrorEventArgs e)
|
||||||
{
|
{
|
||||||
string filePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "loaderror.html");
|
// string filePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "loaderror.html");
|
||||||
_fileUri2 = new Uri(filePath);
|
// _fileUri2 = new Uri(filePath);
|
||||||
string fileUrl = _fileUri2.AbsoluteUri;
|
// string fileUrl = _fileUri2.AbsoluteUri;
|
||||||
chromiumWebBrowser1.Load(fileUrl);
|
// chromiumWebBrowser1.Load(fileUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void txtSearchOrUrl_KeyUp(object sender, KeyEventArgs e)
|
private void txtSearchOrUrl_KeyUp(object sender, KeyEventArgs e)
|
||||||
|
@ -212,6 +212,16 @@ namespace XeroBrowser
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void bunifuImageButton3_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void bunifuImageButton2_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
chromiumWebBrowser1.Load("https://google.com");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -244,7 +244,7 @@
|
||||||
<data name="bunifuImageButton4.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
<data name="bunifuImageButton4.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
<value>
|
<value>
|
||||||
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAL
|
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAL
|
||||||
EQAACxEBf2RfkQAAAEdJREFUSEtjGAXUBN5A/ASIHwOxJ0iA2gBk8H8ofgQSoDaguQWgYAFZAjLcAyQw
|
DwAACw8BkvkDpQAAAEdJREFUSEtjGAXUBN5A/ASIHwOxJ0iA2gBk8H8ofgQSoDaguQWgYAFZAjLcAyQw
|
||||||
CugORpMpQTCaTAcejCZTgmA0mdICMDAAAIMDJKb2vGrMAAAAAElFTkSuQmCC
|
CugORpMpQTCaTAcejCZTgmA0mdICMDAAAIMDJKb2vGrMAAAAAElFTkSuQmCC
|
||||||
</value>
|
</value>
|
||||||
</data>
|
</data>
|
||||||
|
@ -2514,7 +2514,7 @@
|
||||||
<data name="bunifuImageButton3.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
<data name="bunifuImageButton3.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
<value>
|
<value>
|
||||||
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAL
|
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAL
|
||||||
DwAACw8BkvkDpQAAALlJREFUSEvdlbENwkAMRVOxAQ2bwArUzMQutGwAYhKgYQn4jvStk2Vju0iTJz0p
|
DQAACw0B7QfALAAAALlJREFUSEvdlbENwkAMRVOxAQ2bwArUzMQutGwAYhKgYQn4jvStk2Vju0iTJz0p
|
||||||
d/pPUapMq+QIX/BrjBg3d7nIeMIxohHVnWIDGlHdKTagEdWdYgMaUd0pNqAR1Z1iAxpR3Sk2oBHVnWID
|
d/pPUapMq+QIX/BrjBg3d7nIeMIxohHVnWIDGlHdKTagEdWdYgMaUd0pNqAR1Z1iAxpR3Sk2oBHVnWID
|
||||||
KmzhBV7hTi6At/uLDegJfoazPMvduBFTbNA1xYs6pnhRxxQv6pjiRR1TvKjqA6ZwvJ9PC/CG8oLDfFqA
|
KmzhBV7hTi6At/uLDegJfoazPMvduBFTbNA1xYs6pnhRxxQv6pjiRR1TvKjqA6ZwvJ9PC/CG8oLDfFqA
|
||||||
M+RXdC390TZQXsIv6XiDq2Kafsn+6Z0eJ+H6AAAAAElFTkSuQmCC
|
M+RXdC390TZQXsIv6XiDq2Kafsn+6Z0eJ+H6AAAAAElFTkSuQmCC
|
||||||
|
|
686
WebBrowser/frmSettings.Designer.cs
generated
686
WebBrowser/frmSettings.Designer.cs
generated
File diff suppressed because it is too large
Load diff
|
@ -1,5 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
using System.Drawing;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
// using Bunifu.UI.WinForms;
|
// using Bunifu.UI.WinForms;
|
||||||
|
|
||||||
|
@ -10,14 +11,48 @@ namespace XeroBrowser
|
||||||
public FrmSettings()
|
public FrmSettings()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
tabControl1.DrawMode = TabDrawMode.OwnerDrawFixed;
|
||||||
|
tabControl1.Padding = new Point(15, 8);
|
||||||
|
tabControl1.Appearance = TabAppearance.FlatButtons;
|
||||||
|
tabControl1.ItemSize = new Size(0, 34);
|
||||||
|
tabControl1.SizeMode = TabSizeMode.Fixed;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void tabControl1_DrawItem(object sender, DrawItemEventArgs e)
|
||||||
|
{
|
||||||
|
TabControl tabControl = (TabControl)sender;
|
||||||
|
TabPage tabPage = tabControl.TabPages[e.Index];
|
||||||
|
|
||||||
|
// Set the background color of the tab
|
||||||
|
using (Brush brush = new SolidBrush(Color.FromArgb(224, 224, 224)))
|
||||||
|
{
|
||||||
|
e.Graphics.FillRectangle(brush, e.Bounds);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Draw the icon for the tab, if available
|
||||||
|
if (tabPage.ImageIndex >= 0)
|
||||||
|
{
|
||||||
|
Image icon = tabControl.ImageList.Images[tabPage.ImageIndex];
|
||||||
|
Rectangle iconRect = new Rectangle(e.Bounds.X + 6, e.Bounds.Y + 6, 20, 20);
|
||||||
|
e.Graphics.DrawImage(icon, iconRect);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Draw the text for the tab
|
||||||
|
using (Brush brush = new SolidBrush(Color.Black))
|
||||||
|
{
|
||||||
|
Font font = new Font("Segoe UI", 9, FontStyle.Regular);
|
||||||
|
StringFormat format = new StringFormat();
|
||||||
|
format.Alignment = StringAlignment.Center;
|
||||||
|
format.LineAlignment = StringAlignment.Center;
|
||||||
|
Rectangle textRect = new Rectangle(e.Bounds.X + 28, e.Bounds.Y, e.Bounds.Width - 28, e.Bounds.Height);
|
||||||
|
e.Graphics.DrawString(tabPage.Text, font, brush, textRect, format);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private void bunifuDropdown1_SelectedIndexChanged(object sender, EventArgs e)
|
private void bunifuDropdown1_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void bunifuButton22_Click(object sender, EventArgs e)
|
private void bunifuButton22_Click(object sender, EventArgs e)
|
||||||
|
@ -29,5 +64,31 @@ namespace XeroBrowser
|
||||||
{
|
{
|
||||||
Close();
|
Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void bunifuTextBox1_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
bunifuRadioButton2.Checked = true;
|
||||||
|
bunifuRadioButton1.Checked = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnBrowser_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
tabControl1.SelectedIndex = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnPrivacy_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
tabControl1.SelectedIndex = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Appearance_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
tabControl1.SelectedIndex = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnBehavior_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
tabControl1.SelectedIndex = 3;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Reference in a new issue