mirror of https://github.com/buggins/dlangui.git
fixes
This commit is contained in:
parent
6c102d0d40
commit
83aec70a41
|
@ -78,8 +78,8 @@ Log.e("exception while reading file", e);
|
|||
*/
|
||||
synchronized class Log {
|
||||
static:
|
||||
private LogLevel logLevel = LogLevel.Info;
|
||||
private std.stdio.File logFile;
|
||||
__gshared private LogLevel logLevel = LogLevel.Info;
|
||||
__gshared private std.stdio.File logFile;
|
||||
|
||||
/// Redirects output to stdout
|
||||
void setStdoutLogger() {
|
||||
|
|
|
@ -2951,13 +2951,16 @@ class LogWidget : EditBox {
|
|||
_scrollLock = true;
|
||||
enabled = false;
|
||||
fontSize = 15;
|
||||
fontFace = "Consolas,Lucida Console,Courier New";
|
||||
//fontFace = "Consolas,Lucida Console,Courier New";
|
||||
fontFace = "Consolas,DejaVuSansMono,Lucida Sans Typewriter,Courier New,Lucida Console";
|
||||
fontFamily = FontFamily.MonoSpace;
|
||||
minFontSize(10).maxFontSize(32); // allow font zoom with Ctrl + MouseWheel
|
||||
}
|
||||
/// append lines to the end of text
|
||||
void appendLines(dstring[] lines...) {
|
||||
if (lines.length == 0)
|
||||
void appendText(dstring text) {
|
||||
if (text.length == 0)
|
||||
return;
|
||||
dstring[] lines = text.split("\n");
|
||||
//lines ~= ""d; // append new line after last line
|
||||
content.appendLines(lines);
|
||||
if (_maxLines > 0 && lineCount > _maxLines) {
|
||||
|
|
|
@ -25,7 +25,8 @@ import dlangui.widgets.styles;
|
|||
class SourceEdit : EditBox {
|
||||
this(string ID) {
|
||||
super(ID);
|
||||
fontFace = "Consolas,Lucida Console,Courier New";
|
||||
fontFace = "Consolas,DejaVuSansMono,Lucida Sans Typewriter,Courier New,Lucida Console";
|
||||
//fontFace = "Consolas,Lucida Console,Courier New";
|
||||
fontFamily = FontFamily.MonoSpace;
|
||||
fontSize = 17;
|
||||
layoutWidth(FILL_PARENT).layoutHeight(FILL_PARENT);
|
||||
|
|
Loading…
Reference in New Issue