LCOV - code coverage report
Current view: top level - dbe/src/internal - StyleUtility.cpp (source / functions) Coverage Total Hit
Test: code.result Lines: 0.0 % 27 0
Test Date: 2025-12-21 13:07:08 Functions: 0.0 % 1 0

            Line data    Source code
       1              : /// Including DBE
       2              : #include "dbe/StyleUtility.hpp"
       3              : 
       4              : QColor dbe::StyleUtility::TableColorAttribute;
       5              : QColor dbe::StyleUtility::TableAttributeBackground;
       6              : QColor dbe::StyleUtility::TableAttributeHighlightBackground;
       7              : QColor dbe::StyleUtility::FileReadOnlyForeground;
       8              : QColor dbe::StyleUtility::FileReadOnlyBackground;
       9              : 
      10              : QColor dbe::StyleUtility::TableColorRelationship;
      11              : QPalette dbe::StyleUtility::AlertStatusBarPallete;
      12              : QPalette dbe::StyleUtility::AlertStatusBarPalleteWindow;
      13              : QPalette dbe::StyleUtility::WarningStatusBarPallete;
      14              : QPalette dbe::StyleUtility::WarningStatusBarPalleteWindow;
      15              : QPalette dbe::StyleUtility::PaleGreenPalleteButton;
      16              : QPalette dbe::StyleUtility::LoadedDefault;
      17              : 
      18              : 
      19            0 : void dbe::StyleUtility::InitColorManagement()
      20              : {
      21            0 :   TableColorAttribute = QColor ( "#1B676B" );
      22            0 :   TableAttributeBackground = QColor ( "#ffffff" );
      23            0 :   TableAttributeHighlightBackground = QColor ( "#f0f0ff" );
      24            0 :   TableColorRelationship = QColor ( "#AD4713" );
      25              : 
      26            0 :   FileReadOnlyForeground = QColor ("#a00000");
      27            0 :   FileReadOnlyBackground = QColor ("#f0f0f0");
      28              : 
      29              : 
      30            0 :   AlertStatusBarPallete.setColor ( QPalette::Active, QPalette::Base, QColor ( "red" ) );
      31            0 :   AlertStatusBarPallete.setColor ( QPalette::Inactive, QPalette::Base, QColor ( "red" ) );
      32            0 :   WarningStatusBarPallete.setColor ( QPalette::Active, QPalette::Base, QColor ( "yellow" ) );
      33            0 :   WarningStatusBarPallete.setColor ( QPalette::Inactive, QPalette::Base,
      34            0 :                                      QColor ( "yellow" ) );
      35            0 :   AlertStatusBarPalleteWindow.setColor ( QPalette::Active, QPalette::Window,
      36            0 :                                          QColor ( "red" ) );
      37            0 :   AlertStatusBarPalleteWindow.setColor ( QPalette::Inactive, QPalette::Window,
      38            0 :                                          QColor ( "red" ) );
      39            0 :   WarningStatusBarPalleteWindow.setColor ( QPalette::Active, QPalette::Window,
      40            0 :                                            QColor ( "yellow" ) );
      41            0 :   WarningStatusBarPalleteWindow.setColor ( QPalette::Inactive, QPalette::Window,
      42            0 :                                            QColor ( "yellow" ) );
      43            0 :   LoadedDefault.setColor ( QPalette::Active, QPalette::Base, QColor::fromRgb ( 184, 244,
      44              :                                                                                255 ) );
      45            0 :   LoadedDefault.setColor ( QPalette::Inactive, QPalette::Base, QColor::fromRgb ( 184, 244,
      46              :                                                                                  255 ) );
      47            0 :   PaleGreenPalleteButton.setColor ( QPalette::Active, QPalette::Button,
      48            0 :                                     QColor::fromRgb ( 190, 238, 158 ) );
      49            0 :   PaleGreenPalleteButton.setColor ( QPalette::Inactive, QPalette::Button,
      50            0 :                                     QColor::fromRgb ( 190, 238, 158 ) );
      51            0 : }
        

Generated by: LCOV version 2.0-1