| 1 |
// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. |
| 2 |
// |
| 3 |
// SPDX-License-Identifier: LGPL-3.0-or-later |
| 4 |
|
| 5 |
#include "dplatformtheme.h" |
| 6 |
#include "private/dplatforminterface_p.h" |
| 7 |
|
| 8 |
DGUI_BEGIN_NAMESPACE |
| 9 |
|
| 10 |
DPlatformInterface::DPlatformInterface(DPlatformTheme *platformTheme) |
| 11 |
: m_platformTheme(platformTheme) |
| 12 |
{ |
| 13 |
|
| 14 |
} |
| 15 |
|
| 16 |
DPlatformInterface::~DPlatformInterface() |
| 17 |
{ |
| 18 |
|
| 19 |
} |
| 20 |
|
| 21 |
int DPlatformInterface::cursorBlinkTime() const |
| 22 |
{ |
| 23 |
return {}; |
| 24 |
} |
| 25 |
|
| 26 |
int DPlatformInterface::cursorBlinkTimeout() const |
| 27 |
{ |
| 28 |
return {}; |
| 29 |
} |
| 30 |
|
| 31 |
bool DPlatformInterface::cursorBlink() const |
| 32 |
{ |
| 33 |
return {}; |
| 34 |
} |
| 35 |
|
| 36 |
int DPlatformInterface::doubleClickDistance() const |
| 37 |
{ |
| 38 |
return {}; |
| 39 |
} |
| 40 |
|
| 41 |
int DPlatformInterface::doubleClickTime() const |
| 42 |
{ |
| 43 |
return {}; |
| 44 |
} |
| 45 |
|
| 46 |
int DPlatformInterface::dndDragThreshold() const |
| 47 |
{ |
| 48 |
return {}; |
| 49 |
} |
| 50 |
|
| 51 |
int DPlatformInterface::windowRadius() const |
| 52 |
{ |
| 53 |
return -1; |
| 54 |
} |
| 55 |
|
| 56 |
int DPlatformInterface::windowRadius(int defaultValue) const |
| 57 |
{ |
| 58 |
return defaultValue; |
| 59 |
} |
| 60 |
|
| 61 |
QByteArray DPlatformInterface::themeName() const |
| 62 |
{ |
| 63 |
return {}; |
| 64 |
} |
| 65 |
|
| 66 |
QByteArray DPlatformInterface::iconThemeName() const |
| 67 |
{ |
| 68 |
return {}; |
| 69 |
} |
| 70 |
|
| 71 |
QByteArray DPlatformInterface::soundThemeName() const |
| 72 |
{ |
| 73 |
return {}; |
| 74 |
} |
| 75 |
|
| 76 |
QByteArray DPlatformInterface::fontName() const |
| 77 |
{ |
| 78 |
return {}; |
| 79 |
} |
| 80 |
|
| 81 |
QByteArray DPlatformInterface::monoFontName() const |
| 82 |
{ |
| 83 |
return {}; |
| 84 |
} |
| 85 |
|
| 86 |
qreal DPlatformInterface::fontPointSize() const |
| 87 |
{ |
| 88 |
return {}; |
| 89 |
} |
| 90 |
|
| 91 |
QByteArray DPlatformInterface::gtkFontName() const |
| 92 |
{ |
| 93 |
return {}; |
| 94 |
} |
| 95 |
|
| 96 |
QColor DPlatformInterface::activeColor() const |
| 97 |
{ |
| 98 |
return {}; |
| 99 |
} |
| 100 |
|
| 101 |
QColor DPlatformInterface::darkActiveColor() const |
| 102 |
{ |
| 103 |
return {}; |
| 104 |
} |
| 105 |
|
| 106 |
#if DTK_VERSION < DTK_VERSION_CHECK(6, 0, 0, 0) |
| 107 |
QColor DPlatformInterface::window() const |
| 108 |
{ |
| 109 |
return {}; |
| 110 |
} |
| 111 |
|
| 112 |
QColor DPlatformInterface::windowText() const |
| 113 |
{ |
| 114 |
return {}; |
| 115 |
} |
| 116 |
|
| 117 |
QColor DPlatformInterface::base() const |
| 118 |
{ |
| 119 |
return {}; |
| 120 |
} |
| 121 |
|
| 122 |
QColor DPlatformInterface::alternateBase() const |
| 123 |
{ |
| 124 |
return {}; |
| 125 |
} |
| 126 |
|
| 127 |
QColor DPlatformInterface::toolTipBase() const |
| 128 |
{ |
| 129 |
return {}; |
| 130 |
} |
| 131 |
|
| 132 |
QColor DPlatformInterface::toolTipText() const |
| 133 |
{ |
| 134 |
return {}; |
| 135 |
} |
| 136 |
|
| 137 |
QColor DPlatformInterface::text() const |
| 138 |
{ |
| 139 |
return {}; |
| 140 |
} |
| 141 |
|
| 142 |
QColor DPlatformInterface::button() const |
| 143 |
{ |
| 144 |
return {}; |
| 145 |
} |
| 146 |
|
| 147 |
QColor DPlatformInterface::buttonText() const |
| 148 |
{ |
| 149 |
return {}; |
| 150 |
} |
| 151 |
|
| 152 |
QColor DPlatformInterface::brightText() const |
| 153 |
{ |
| 154 |
return {}; |
| 155 |
} |
| 156 |
|
| 157 |
QColor DPlatformInterface::light() const |
| 158 |
{ |
| 159 |
return {}; |
| 160 |
} |
| 161 |
|
| 162 |
QColor DPlatformInterface::midlight() const |
| 163 |
{ |
| 164 |
return {}; |
| 165 |
} |
| 166 |
|
| 167 |
QColor DPlatformInterface::dark() const |
| 168 |
{ |
| 169 |
return {}; |
| 170 |
} |
| 171 |
|
| 172 |
QColor DPlatformInterface::mid() const |
| 173 |
{ |
| 174 |
return {}; |
| 175 |
} |
| 176 |
|
| 177 |
QColor DPlatformInterface::shadow() const |
| 178 |
{ |
| 179 |
return {}; |
| 180 |
} |
| 181 |
|
| 182 |
QColor DPlatformInterface::highlight() const |
| 183 |
{ |
| 184 |
return {}; |
| 185 |
} |
| 186 |
|
| 187 |
QColor DPlatformInterface::highlightedText() const |
| 188 |
{ |
| 189 |
return {}; |
| 190 |
} |
| 191 |
|
| 192 |
QColor DPlatformInterface::link() const |
| 193 |
{ |
| 194 |
return {}; |
| 195 |
} |
| 196 |
|
| 197 |
QColor DPlatformInterface::linkVisited() const |
| 198 |
{ |
| 199 |
return {}; |
| 200 |
} |
| 201 |
|
| 202 |
QColor DPlatformInterface::itemBackground() const |
| 203 |
{ |
| 204 |
return {}; |
| 205 |
} |
| 206 |
|
| 207 |
QColor DPlatformInterface::textTitle() const |
| 208 |
{ |
| 209 |
return {}; |
| 210 |
} |
| 211 |
|
| 212 |
QColor DPlatformInterface::textTips() const |
| 213 |
{ |
| 214 |
return {}; |
| 215 |
} |
| 216 |
|
| 217 |
QColor DPlatformInterface::textWarning() const |
| 218 |
{ |
| 219 |
return {}; |
| 220 |
} |
| 221 |
|
| 222 |
QColor DPlatformInterface::textLively() const |
| 223 |
{ |
| 224 |
return {}; |
| 225 |
} |
| 226 |
|
| 227 |
QColor DPlatformInterface::lightLively() const |
| 228 |
{ |
| 229 |
return {}; |
| 230 |
} |
| 231 |
|
| 232 |
QColor DPlatformInterface::darkLively() const |
| 233 |
{ |
| 234 |
return {}; |
| 235 |
} |
| 236 |
|
| 237 |
QColor DPlatformInterface::frameBorder() const |
| 238 |
{ |
| 239 |
return {}; |
| 240 |
} |
| 241 |
#endif |
| 242 |
|
| 243 |
int DPlatformInterface::dotsPerInch(const QString &) const |
| 244 |
{ |
| 245 |
return {}; |
| 246 |
} |
| 247 |
|
| 248 |
int DPlatformInterface::sizeMode() const |
| 249 |
{ |
| 250 |
return {}; |
| 251 |
} |
| 252 |
|
| 253 |
int DPlatformInterface::scrollBarPolicy() const |
| 254 |
{ |
| 255 |
return {}; |
| 256 |
} |
| 257 |
|
| 258 |
void DPlatformInterface::setCursorBlinkTime(int) |
| 259 |
{ |
| 260 |
|
| 261 |
} |
| 262 |
|
| 263 |
void DPlatformInterface::setCursorBlinkTimeout(int) |
| 264 |
{ |
| 265 |
|
| 266 |
} |
| 267 |
|
| 268 |
void DPlatformInterface::setCursorBlink(bool) |
| 269 |
{ |
| 270 |
|
| 271 |
} |
| 272 |
|
| 273 |
void DPlatformInterface::setDoubleClickDistance(int) |
| 274 |
{ |
| 275 |
|
| 276 |
} |
| 277 |
|
| 278 |
void DPlatformInterface::setDoubleClickTime(int) |
| 279 |
{ |
| 280 |
|
| 281 |
} |
| 282 |
|
| 283 |
void DPlatformInterface::setDndDragThreshold(int) |
| 284 |
{ |
| 285 |
|
| 286 |
} |
| 287 |
|
| 288 |
void DPlatformInterface::setThemeName(const QByteArray &) |
| 289 |
{ |
| 290 |
|
| 291 |
} |
| 292 |
|
| 293 |
void DPlatformInterface::setIconThemeName(const QByteArray &) |
| 294 |
{ |
| 295 |
|
| 296 |
} |
| 297 |
|
| 298 |
void DPlatformInterface::setSoundThemeName(const QByteArray &) |
| 299 |
{ |
| 300 |
|
| 301 |
} |
| 302 |
|
| 303 |
void DPlatformInterface::setFontName(const QByteArray &) |
| 304 |
{ |
| 305 |
|
| 306 |
} |
| 307 |
|
| 308 |
void DPlatformInterface::setMonoFontName(const QByteArray &) |
| 309 |
{ |
| 310 |
|
| 311 |
} |
| 312 |
|
| 313 |
void DPlatformInterface::setFontPointSize(qreal) |
| 314 |
{ |
| 315 |
|
| 316 |
} |
| 317 |
|
| 318 |
void DPlatformInterface::setGtkFontName(const QByteArray &) |
| 319 |
{ |
| 320 |
|
| 321 |
} |
| 322 |
|
| 323 |
void DPlatformInterface::setActiveColor(const QColor) |
| 324 |
{ |
| 325 |
|
| 326 |
} |
| 327 |
|
| 328 |
void DPlatformInterface::setDarkActiveColor(const QColor &) |
| 329 |
{ |
| 330 |
|
| 331 |
} |
| 332 |
|
| 333 |
#if DTK_VERSION < DTK_VERSION_CHECK(6, 0, 0, 0) |
| 334 |
void DPlatformInterface::setWindow(const QColor &) |
| 335 |
{ |
| 336 |
|
| 337 |
} |
| 338 |
|
| 339 |
void DPlatformInterface::setWindowText(const QColor &) |
| 340 |
{ |
| 341 |
|
| 342 |
} |
| 343 |
|
| 344 |
void DPlatformInterface::setBase(const QColor &) |
| 345 |
{ |
| 346 |
|
| 347 |
} |
| 348 |
|
| 349 |
void DPlatformInterface::setAlternateBase(const QColor &) |
| 350 |
{ |
| 351 |
|
| 352 |
} |
| 353 |
|
| 354 |
void DPlatformInterface::setToolTipBase(const QColor &) |
| 355 |
{ |
| 356 |
|
| 357 |
} |
| 358 |
|
| 359 |
void DPlatformInterface::setToolTipText(const QColor &) |
| 360 |
{ |
| 361 |
|
| 362 |
} |
| 363 |
|
| 364 |
void DPlatformInterface::setText(const QColor &) |
| 365 |
{ |
| 366 |
|
| 367 |
} |
| 368 |
|
| 369 |
void DPlatformInterface::setButton(const QColor &) |
| 370 |
{ |
| 371 |
|
| 372 |
} |
| 373 |
|
| 374 |
void DPlatformInterface::setButtonText(const QColor &) |
| 375 |
{ |
| 376 |
|
| 377 |
} |
| 378 |
|
| 379 |
void DPlatformInterface::setBrightText(const QColor &) |
| 380 |
{ |
| 381 |
|
| 382 |
} |
| 383 |
|
| 384 |
void DPlatformInterface::setLight(const QColor &) |
| 385 |
{ |
| 386 |
|
| 387 |
} |
| 388 |
|
| 389 |
void DPlatformInterface::setMidlight(const QColor &) |
| 390 |
{ |
| 391 |
|
| 392 |
} |
| 393 |
|
| 394 |
void DPlatformInterface::setDark(const QColor &) |
| 395 |
{ |
| 396 |
|
| 397 |
} |
| 398 |
|
| 399 |
void DPlatformInterface::setMid(const QColor &) |
| 400 |
{ |
| 401 |
|
| 402 |
} |
| 403 |
|
| 404 |
void DPlatformInterface::setShadow(const QColor &) |
| 405 |
{ |
| 406 |
|
| 407 |
} |
| 408 |
|
| 409 |
void DPlatformInterface::setHighlight(const QColor &) |
| 410 |
{ |
| 411 |
|
| 412 |
} |
| 413 |
|
| 414 |
void DPlatformInterface::setHighlightedText(const QColor &) |
| 415 |
{ |
| 416 |
|
| 417 |
} |
| 418 |
|
| 419 |
void DPlatformInterface::setLink(const QColor &) |
| 420 |
{ |
| 421 |
|
| 422 |
} |
| 423 |
|
| 424 |
void DPlatformInterface::setLinkVisited(const QColor &) |
| 425 |
{ |
| 426 |
|
| 427 |
} |
| 428 |
|
| 429 |
void DPlatformInterface::setItemBackground(const QColor &) |
| 430 |
{ |
| 431 |
|
| 432 |
} |
| 433 |
|
| 434 |
void DPlatformInterface::setTextTitle(const QColor &) |
| 435 |
{ |
| 436 |
|
| 437 |
} |
| 438 |
|
| 439 |
void DPlatformInterface::setTextTips(const QColor &) |
| 440 |
{ |
| 441 |
|
| 442 |
} |
| 443 |
|
| 444 |
void DPlatformInterface::setTextWarning(const QColor &) |
| 445 |
{ |
| 446 |
|
| 447 |
} |
| 448 |
|
| 449 |
void DPlatformInterface::setTextLively(const QColor &) |
| 450 |
{ |
| 451 |
|
| 452 |
} |
| 453 |
|
| 454 |
void DPlatformInterface::setLightLively(const QColor &) |
| 455 |
{ |
| 456 |
|
| 457 |
} |
| 458 |
|
| 459 |
void DPlatformInterface::setDarkLively(const QColor &) |
| 460 |
{ |
| 461 |
|
| 462 |
} |
| 463 |
|
| 464 |
void DPlatformInterface::setFrameBorder(const QColor &) |
| 465 |
{ |
| 466 |
|
| 467 |
} |
| 468 |
#endif |
| 469 |
|
| 470 |
void DPlatformInterface::setDotsPerInch(const QString &, int) |
| 471 |
{ |
| 472 |
|
| 473 |
} |
| 474 |
|
| 475 |
void DPlatformInterface::setWindowRadius(int) |
| 476 |
{ |
| 477 |
|
| 478 |
} |
| 479 |
|
| 480 |
DGUI_END_NAMESPACE |