JS8Call-Improved master
Loading...
Searching...
No Matches
Styles Namespace Reference

Defines platform-specific style constants for JS8Call's header bar controls. More...

Variables

constexpr const char * LogWidgetStyle
constexpr const char * DialFreqUpDownButtonStyle
constexpr const char * LabDialFreqOffsetStyle
constexpr const char * LabCallsignStyle
constexpr const char * LabUTCStyle
constexpr const char * ButtonGridStyle
constexpr const char * MonitorTxButtonStyle
constexpr const char * MonitorButtonStyle
constexpr const char * LogQSOButtonStyle
constexpr const char * TuneButtonStyle = LogQSOButtonStyle
constexpr const char * ModeButtonStyle
constexpr const char * SpotButtonStyle

Detailed Description

Defines platform-specific style constants for JS8Call's header bar controls.

This namespace provides a set of constant strings that determine the appearance of various header bar UI elements in JS8Call, including frequency widgets, buttons, and labels. Each definition adapts to the conventions of MacOS, Windows, or other (which includes linux) platforms, ensuring a consistent and native look and feel per-platform.

  • Styles include visual treatments for log widgets, frequency buttons, status labels, and a variety of push buttons (grid, monitor, log, mode, spot, etc.).
  • Platform differences (MacOS, Windows, other) are handled using preprocessor directives, with each block tailored to the target system's design conventions.
  • For each supported platform, constants such as LogWidgetStyle, DialFreqUpDownButtonStyle, LabUTCStyle, and others are defined.

Variable Documentation

◆ ButtonGridStyle

const char* Styles::ButtonGridStyle
constexpr
Initial value:
=
"QPushButton {"
" background-color:lightgray;"
" padding:0.25em 0.25em; font-weight:normal;"
" border-style:solid;"
" border-width:0px;"
" border-radius:0px;"
"}"
"QPushButton:checked {"
" background-color:#6699ff;"
"}"

◆ DialFreqUpDownButtonStyle

const char* Styles::DialFreqUpDownButtonStyle
constexpr
Initial value:
=
"QPushButton {"
" background-color: #000000;"
" color: #39FF14;"
" font-size: 12pt;"
" border:1px solid;"
" border-radius:0px;"
"}"
"QPushButton:pressed {"
" background-color: #222;"
"}"

◆ LabCallsignStyle

const char* Styles::LabCallsignStyle
constexpr
Initial value:
= "QLabel {"
" font-size: 14pt;"
" line-height:12pt;"
" color : black;"
"}"

◆ LabDialFreqOffsetStyle

const char* Styles::LabDialFreqOffsetStyle
constexpr
Initial value:
= "QLabel {"
" font-size: 14pt;"
" line-height:12pt;"
" color : black;"
"}"

◆ LabUTCStyle

const char* Styles::LabUTCStyle
constexpr
Initial value:
=
"QLabel {"
" border-radius:0px;"
" font-size: 18pt;"
" line-height:18pt;"
" font-family: \"DejaVu Sans Mono\", \"Liberation Mono\", \"Noto Mono\", \"Ubuntu Mono\", monospace;"
" font-weight: bold;"
" background-color: black;"
" color : #39FF14;"
"}"

◆ LogQSOButtonStyle

const char* Styles::LogQSOButtonStyle
constexpr
Initial value:
=
"QPushButton {"
" background-color:lightgray;"
" padding:0.25em 0.25em; font-weight:normal;"
" border-style:solid;"
" border-width:0px;"
" border-radius:0px;"
"}"
"QPushButton:checked {"
" background-color:#6699ff;"
"}"

◆ LogWidgetStyle

const char* Styles::LogWidgetStyle
constexpr
Initial value:
=
"QFrame#logWidget { background-color: #F2F2F0; }"

◆ ModeButtonStyle

const char* Styles::ModeButtonStyle
constexpr
Initial value:
=
"QPushButton {"
" padding:0.25em 0.25em; font-weight:bold;"
" border-style:solid;"
" border-width:0px;"
" border-radius:0px;"
" background-color:#6699ff;"
"}"
"QPushButton:checked {"
" background-color:#6699ff;"
"}"

◆ MonitorButtonStyle

const char* Styles::MonitorButtonStyle
constexpr
Initial value:
=
"QPushButton {"
" background-color:lightgray;"
" padding:0.25em 0.25em; font-weight:normal;"
" border-style:solid;"
" border-width:0px;"
" border-radius:0px;"
"}"
"QPushButton:checked {"
" background-color:#22FF22;"
"}"

◆ MonitorTxButtonStyle

const char* Styles::MonitorTxButtonStyle
constexpr
Initial value:
=
"QPushButton {"
" background-color:lightgray;"
" padding:0.25em 0.25em; font-weight:normal;"
" border-style:solid;"
" border-width:0px;"
" border-radius:0px;"
"}"
"QPushButton:checked {"
" background-color:#22FF22;"
"}"
"QPushButton[transmitting=\"true\"] {"
" background-color:#FF2222;"
"}"

◆ SpotButtonStyle

const char* Styles::SpotButtonStyle
constexpr
Initial value:
=
"QPushButton {"
" background-color:lightgray;"
" padding:0.25em 0.25em; font-weight:normal;"
" border-style:solid;"
" border-width:0px;"
" border-radius:0px;"
"}"
"QPushButton:checked {"
" background-color:#6699ff;"
"}"