mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
Ref T369, text message component style / font size +/-
This commit is contained in:
@@ -577,5 +577,15 @@ namespace BlackGui
|
||||
this->displayMyself();
|
||||
}
|
||||
|
||||
void CTextMessageComponent::fontSizeMinus()
|
||||
{
|
||||
ui->comp_SettingsStyle->fontSizeMinus();
|
||||
}
|
||||
|
||||
void CTextMessageComponent::fontSizePlus()
|
||||
{
|
||||
ui->comp_SettingsStyle->fontSizePlus();
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
@@ -71,6 +71,11 @@ namespace BlackGui
|
||||
//! Display the tab for given callsign
|
||||
void showCorrespondingTab(const BlackMisc::Aviation::CCallsign &callsign);
|
||||
|
||||
//! Font size @{
|
||||
void fontSizeMinus();
|
||||
void fontSizePlus();
|
||||
//! @}
|
||||
|
||||
signals:
|
||||
//! Message to be displayed in info window
|
||||
void displayInInfoWindow(const BlackMisc::CVariant &message, int displayDurationMs) const;
|
||||
|
||||
@@ -245,11 +245,25 @@
|
||||
<property name="bottomMargin">
|
||||
<number>1</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="BlackGui::Components::CSettingsTextMessageInlineComponent" name="comp_SettingsOverlay"/>
|
||||
<item alignment="Qt::AlignRight">
|
||||
<widget class="BlackGui::Components::CSettingsTextMessageInlineComponent" name="comp_SettingsOverlay">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="BlackGui::Components::CSettingsTextMessageStyle" name="comp_SettingsStyle"/>
|
||||
<item alignment="Qt::AlignRight">
|
||||
<widget class="BlackGui::Components::CSettingsTextMessageStyle" name="comp_SettingsStyle">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
|
||||
@@ -214,7 +214,7 @@ QPushButton {
|
||||
color: yellow; /* font color */
|
||||
padding: 0px;
|
||||
margin-right: 5px;
|
||||
min-width:60px;
|
||||
min-width:40px;
|
||||
min-height:20px;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user