Browse Source

refine qrcode form

tags/2.3
clowwindy 10 years ago
parent
commit
165f016a82
3 changed files with 17 additions and 14 deletions
  1. +13
    -13
      shadowsocks-csharp/Data/qrcode.htm
  2. +3
    -1
      shadowsocks-csharp/View/ConfigForm.cs
  3. +1
    -0
      shadowsocks-csharp/View/QRCodeForm.Designer.cs

+ 13
- 13
shadowsocks-csharp/Data/qrcode.htm View File

@@ -5,19 +5,19 @@
__QRCODELIB__ __QRCODELIB__
</script> </script>
<style> <style>
html, body, table, div {
padding: 0px;
margin: 0 !important;
}
div#qrcode {
margin: 5px !important;
text-align: center;
vertical-align: center;
}
#qrcode {
width:190px;
height:190px;
}
html, body, table, div {
padding: 0px;
margin: 0 !important;
}
div#qrcode {
margin: 5px !important;
text-align: center;
vertical-align: center;
}
#qrcode {
width:190px;
height:190px;
}
table { table {
width: 100%; width: 100%;
height:100%; height:100%;


+ 3
- 1
shadowsocks-csharp/View/ConfigForm.cs View File

@@ -305,7 +305,9 @@ namespace Shadowsocks.View
private void QRCodeItem_Click(object sender, EventArgs e) private void QRCodeItem_Click(object sender, EventArgs e)
{ {
new QRCodeForm(controller.GetQRCodeForCurrentServer()).Show();
QRCodeForm qrCodeForm = new QRCodeForm(controller.GetQRCodeForCurrentServer());
qrCodeForm.Icon = this.Icon;
qrCodeForm.Show();
} }
} }
} }

+ 1
- 0
shadowsocks-csharp/View/QRCodeForm.Designer.cs View File

@@ -55,6 +55,7 @@
this.Controls.Add(this.QRCodeWebBrowser); this.Controls.Add(this.QRCodeWebBrowser);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false; this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "QRCodeForm"; this.Name = "QRCodeForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Load += new System.EventHandler(this.QRCodeForm_Load); this.Load += new System.EventHandler(this.QRCodeForm_Load);


Loading…
Cancel
Save