// See the License for the specific language governing permissions and\r
// limitations under the License.\r
\r
+using System;\r
using System.Drawing;\r
using System.Windows.Forms;\r
\r
textBoxDetails.Text = details;\r
return ShowDialog(owner);\r
}\r
+\r
+ protected override void OnFontChanged(EventArgs e)\r
+ {\r
+ base.OnFontChanged(e);\r
+ textBoxDetails.Font = new Font(new FontFamily("MS Gothic"), Font.Size);\r
+ }\r
}\r
}
\ No newline at end of file
if (_config.Zoom == 100)\r
return;\r
var prev = CurrentAutoScaleDimensions;\r
- foreach (var control in new Control[] {this, _listForm, labelLogin, linkLabelGuide})\r
+ foreach (var control in new Control[]\r
+ {\r
+ this, _listForm, labelLogin, linkLabelGuide,\r
+ _configDialog, contextMenuStripMain, _errorDialog\r
+ })\r
+ {\r
control.Font = new Font(control.Font.FontFamily, control.Font.Size * _config.Zoom / 100);\r
+ }\r
ShipLabel.LatinFont = new Font("Tahoma", 8f * _config.Zoom / 100);\r
var cur = CurrentAutoScaleDimensions;\r
ShipLabel.ScaleFactor = new SizeF(ShipLabel.ScaleFactor.Width * cur.Width / prev.Width,\r