Skip to content

Commit 354fbd2

Browse files
Stop hardcoding stylesheets so the behavior is more consistent finally (and courtorom_stylesheets.css is more useful)
1 parent 37011fc commit 354fbd2

2 files changed

Lines changed: 1 addition & 11 deletions

File tree

src/courtroom.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -687,11 +687,6 @@ void Courtroom::set_widgets()
687687
set_size_and_pos(ui_ic_chat_message, "ao2_ic_chat_message");
688688
set_size_and_pos(ui_ic_chat_name, "ao2_ic_chat_name");
689689

690-
ui_ic_chat_message->setStyleSheet(
691-
"QLineEdit{background-color: rgba(100, 100, 100, 255);}");
692-
ui_ic_chat_name->setStyleSheet(
693-
"QLineEdit{background-color: rgba(180, 180, 180, 255);}");
694-
695690
ui_vp_chatbox->set_image("chatblank");
696691
ui_vp_chatbox->hide();
697692

@@ -714,15 +709,12 @@ void Courtroom::set_widgets()
714709
ui_muted->set_image("muted");
715710
ui_muted->setToolTip(tr("Oops, you're muted!"));
716711

717-
set_size_and_pos(ui_ooc_chat_message, "ooc_chat_message");
718-
ui_ooc_chat_message->setStyleSheet("background-color: rgba(0, 0, 0, 0);");
712+
set_size_and_pos(ui_ooc_chat_message, "ooc_chat_message");;
719713

720714
set_size_and_pos(ui_ooc_chat_name, "ooc_chat_name");
721-
ui_ooc_chat_name->setStyleSheet("background-color: rgba(0, 0, 0, 0);");
722715

723716
// set_size_and_pos(ui_area_password, "area_password");
724717
set_size_and_pos(ui_music_search, "music_search");
725-
ui_music_search->setStyleSheet("background-color: rgba(0, 0, 0, 0);");
726718

727719
set_size_and_pos(ui_emote_dropdown, "emote_dropdown");
728720
ui_emote_dropdown->setToolTip(

src/evidence.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ void Courtroom::initialize_evidence()
4141
"evidence and send them to server."));
4242

4343
ui_evidence_description = new AOTextEdit(ui_evidence_overlay);
44-
ui_evidence_description->setStyleSheet("background-color: rgba(0, 0, 0, 0);"
45-
"color: white;");
4644
ui_evidence_description->setFrameStyle(QFrame::NoFrame);
4745
ui_evidence_description->setToolTip(
4846
tr("Double-click to edit. Press [X] to update your changes."));

0 commit comments

Comments
 (0)