Skip to content

Commit

Permalink
Fixed #24
Browse files Browse the repository at this point in the history
  • Loading branch information
zumoshi committed Aug 16, 2017
1 parent 848d3b1 commit 9249d2d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
3 changes: 2 additions & 1 deletion BrowserSelect/BrowserUC.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions BrowserSelect/ButtonsUC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ public ButtonsUC()
InitializeComponent();
add_button("About", show_about, 0);
add_button("Settings", show_setting, 1);

// http://www.telerik.com/blogs/winforms-scaling-at-large-dpi-settings-is-it-even-possible-
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
}

private void show_setting(object sender, EventArgs e)
Expand Down
6 changes: 4 additions & 2 deletions BrowserSelect/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ public Form1()

private void Form1_Load(object sender, EventArgs e)
{
int width = 128;
// add browserUC objects to the form
int i = 0;
foreach (var browser in browsers)
{
var buc = new BrowserUC(browser, i);
buc.Left = 128 * i++;
width = buc.Width; // buc.Width = 128*dpi Scale
buc.Left = width * i++;
buc.Click += browser_click;
this.Controls.Add(buc);
}
Expand All @@ -37,7 +39,7 @@ private void Form1_Load(object sender, EventArgs e)
// set the form icon from .exe file icon
this.Icon = IconExtractor.fromFile(Application.ExecutablePath);
// add vertical buttons to right of form
this.Controls.Add(new ButtonsUC() { Left = i * 128 });
this.Controls.Add(new ButtonsUC() { Left = i * width });

// create a wildcard rule for this domain (always button)
_alwaysRule = generate_rule(Program.url);
Expand Down
4 changes: 2 additions & 2 deletions BrowserSelect/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.3.6.0")]
[assembly: AssemblyFileVersion("1.3.6.0")]
[assembly: AssemblyVersion("1.3.7.0")]
[assembly: AssemblyFileVersion("1.3.7.0")]
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ it has been tested on windows 7, windows 8.1 and windows 10. requires **.net fra

# Download

you can download browser select here : [Browser select v1.3.6 (205KB)](https://github.com/zumoshi/BrowserSelect/releases/download/1.3.6/BrowserSelect.exe)
you can download browser select here : [Browser select v1.3.7 (205KB)](https://github.com/zumoshi/BrowserSelect/releases/download/1.3.7/BrowserSelect.exe)

[![100% safe Award from softpedia](http://s1.softpedia-static.com/_img/sp100free.png?1)](http://www.softpedia.com/get/Internet/Browsers/Browser-Select.shtml#status)

Expand Down Expand Up @@ -74,6 +74,9 @@ just a list of some ideas that can be integrated into BrowserSelect.

# Changelog

v1.3.7 [16/08/17]
- Fixed issues with clipping on high dpi screens (#24)

v1.3.6 [11/06/17]
- BrowserSelect's window now shows up in the monitor with the mouse cursor instead of the default one (#22)

Expand Down

0 comments on commit 9249d2d

Please sign in to comment.