mirror of https://github.com/buggins/dlangui.git
irc client example fix for console mode support
This commit is contained in:
parent
bf22bde272
commit
821b9afc85
|
@ -17,5 +17,20 @@
|
|||
|
||||
"dependencies": {
|
||||
"dlangui": {"path": "../../"}
|
||||
}
|
||||
},
|
||||
|
||||
"configurations" : [
|
||||
{
|
||||
"name" : "default",
|
||||
"subConfigurations" : {
|
||||
"dlangui" : "default"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name" : "console",
|
||||
"subConfigurations" : {
|
||||
"dlangui" : "console"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -480,7 +480,7 @@
|
|||
<debuglevel>0</debuglevel>
|
||||
<debugids />
|
||||
<versionlevel>0</versionlevel>
|
||||
<versionids>USE_OPENGL EmbedStandardResources ForceLogs</versionids>
|
||||
<versionids>USE_CONSOLE ForceLogs</versionids>
|
||||
<dump_source>0</dump_source>
|
||||
<mapverbosity>0</mapverbosity>
|
||||
<createImplib>0</createImplib>
|
||||
|
|
|
@ -10,7 +10,7 @@ import ircclient.net.client;
|
|||
import ircclient.ui.settingsdlg;
|
||||
import ircclient.ui.settings;
|
||||
|
||||
import std.string : startsWith, indexOf;
|
||||
import std.string : startsWith, indexOf, empty;
|
||||
import std.path;
|
||||
|
||||
// action codes
|
||||
|
@ -317,8 +317,8 @@ public:
|
|||
_listBox = new StringListWidget();
|
||||
_listBox.layoutHeight = FILL_PARENT;
|
||||
_listBox.layoutWidth = WRAP_CONTENT;
|
||||
_listBox.minWidth = 100;
|
||||
_listBox.maxWidth = 200;
|
||||
_listBox.minWidth = pointsToPixels(100);
|
||||
_listBox.maxWidth = pointsToPixels(200);
|
||||
_listBox.orientation = Orientation.Vertical;
|
||||
//_listBox.items = ["Nick1"d, "Nick2"d];
|
||||
hlayout.addChild(new ResizerWidget(null, Orientation.Horizontal));
|
||||
|
|
|
@ -6,6 +6,8 @@ import dlangui.widgets.widget;
|
|||
import dlangui.dml.parser;
|
||||
import ircclient.ui.frame;
|
||||
import ircclient.ui.settings;
|
||||
import std.utf;
|
||||
import std.conv : to;
|
||||
|
||||
class SettingsDialog : Dialog {
|
||||
IRCFrame _frame;
|
||||
|
|
|
@ -19,7 +19,7 @@ extern (C) int UIAppMain(string[] args) {
|
|||
Window window = Platform.instance.createWindow("DlangUI IRC Client"d, null, WindowFlag.Resizable, 700, 470);
|
||||
|
||||
// create some widget to show in window
|
||||
window.windowIcon = drawableCache.getImage("dlangui-logo1");
|
||||
static if (BACKEND_GUI) window.windowIcon = drawableCache.getImage("dlangui-logo1");
|
||||
|
||||
|
||||
// create some widget to show in window
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
res/i18n/en.ini
|
||||
res/i18n/ru.ini
|
||||
res/mdpi/configure.tim
|
||||
res/mdpi/connect.tim
|
||||
res/mdpi/disconnect.tim
|
||||
res/mdpi/about.tim
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
{' ? ' #FFFF00}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
{' ╬ conf ' #00FFFF #00FFFF #C0C0C0}
|
||||
|
|
@ -0,0 +1 @@
|
|||
{' ► conn ' #00FF00 #00FF00 #C0C0C0}
|
|
@ -0,0 +1 @@
|
|||
{' X dscn ' #FF0000 #FF0000 #C0C0C0}
|
|
@ -188,7 +188,7 @@
|
|||
>
|
||||
<state state_selected="true" backgroundColor="#000080"/>
|
||||
</style>
|
||||
<style id="TAB_UP_BUTTON_TEXT_DARK"
|
||||
<style id="TAB_UP_BUTTON_DARK_TEXT"
|
||||
textColor="#808080"
|
||||
align="Center"
|
||||
padding="1,0,1,0"
|
||||
|
|
Loading…
Reference in New Issue