diff options
author | Ira Rice <irarice@gmail.com> | 2009-03-14 13:21:35 -0600 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-03-14 13:21:35 -0600 |
commit | 3575c7a606c2d24c0d444e9999892c0390fa5ae8 (patch) | |
tree | 399bd2ce51577aa721a460884b397f52d4a4590c /src/gui/setup_players.cpp | |
parent | f0c6bed3d879e1c7b9a6d5b7e676a4f1c6a29a54 (diff) | |
download | mana-client-3575c7a606c2d24c0d444e9999892c0390fa5ae8.tar.gz mana-client-3575c7a606c2d24c0d444e9999892c0390fa5ae8.tar.bz2 mana-client-3575c7a606c2d24c0d444e9999892c0390fa5ae8.tar.xz mana-client-3575c7a606c2d24c0d444e9999892c0390fa5ae8.zip |
Made a label class derived from the guichan label class which utilizes
the palette colors. While technically, this can be accomplished through
other means, it's rather clumsy overall, and is prone to introducing in
programmer errors.
This commit finally catches every case where text is used, and applies
the text color from the color dialog to each of them appropriately.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/setup_players.cpp')
-rw-r--r-- | src/gui/setup_players.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/setup_players.cpp b/src/gui/setup_players.cpp index faf80640..05748000 100644 --- a/src/gui/setup_players.cpp +++ b/src/gui/setup_players.cpp @@ -23,10 +23,9 @@ #include <string> #include <vector> -#include <guichan/widgets/label.hpp> - #include "button.h" #include "checkbox.h" +#include "label.h" #include "listbox.h" #include "ok_dialog.h" #include "scrollarea.h" @@ -138,7 +137,7 @@ public: for (unsigned int r = 0; r < player_names->size(); ++r) { std::string name = (*player_names)[r]; - gcn::Widget *widget = new gcn::Label(name); + gcn::Widget *widget = new Label(name); mWidgets.push_back(widget); gcn::ListModel *playerRelation = new PlayerRelationListModel(); @@ -248,7 +247,7 @@ Setup_Players::Setup_Players(): for (int i = 0; i < COLUMNS_NR; i++) { mPlayerTableTitleModel->set(0, i, - new gcn::Label(gettext(table_titles[i]))); + new Label(gettext(table_titles[i]))); } mPlayerTitleTable->setLinewiseSelection(true); @@ -258,7 +257,7 @@ Setup_Players::Setup_Players(): mPlayerTable->setLinewiseSelection(true); mPlayerTable->addActionListener(this); - gcn::Label *ignore_action_label = new gcn::Label(_("When ignoring:")); + gcn::Label *ignore_action_label = new Label(_("When ignoring:")); mIgnoreActionChoicesBox->setActionEventId(ACTION_STRATEGY); mIgnoreActionChoicesBox->addActionListener(this); |