Skip to content

Commit 3511ea8

Browse files
committed
Updated themes for TabPanel
1 parent 2df2358 commit 3511ea8

3 files changed

Lines changed: 132 additions & 1 deletion

File tree

themes/dark.css

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,72 @@ input, select, textarea { /* Allows overriding native style of form elements on
527527
}
528528

529529

530+
/**************************************************************************/
531+
/** Tab Panel
532+
/**************************************************************************/
533+
/** The following classes are used to define the style for the tab panel.
534+
*/
535+
536+
.tab-panel {
537+
padding: 0 5px;
538+
}
539+
540+
.tab-bar {
541+
background-color: #335177; /* same as windows header */
542+
height: 30px;
543+
color: #fff;
544+
border: 1px solid #2e588d;
545+
border-width: 0 1px;
546+
color: #bdbdbd;
547+
}
548+
549+
.tab-active, .tab-inactive {
550+
padding: 0 12px;
551+
line-height: 30px;
552+
cursor: default;
553+
}
554+
555+
.tab-active {
556+
background-color: #256d95;
557+
color: #fff;
558+
}
559+
560+
.tab-inactive {
561+
background: none;
562+
}
563+
564+
.tab-inactive:hover {
565+
background-color: #3387b7;
566+
color: #fff;
567+
}
568+
569+
.tab-body {
570+
padding: 7px;
571+
vertical-align: top;
572+
background-color: #3e4453;
573+
border: 1px solid #4f5669;
574+
}
575+
576+
577+
578+
/** Special case when tab is the first component inside a window **/
579+
580+
.window-body table:first-child .tab-bar {
581+
background-color: #405672;
582+
}
583+
584+
.window-body table:first-child .tab-active {
585+
border-top: 2px solid #4a84b7;
586+
margin-top: -2px;
587+
}
588+
589+
.window-body table:first-child .tab-body {
590+
border: 0 none;
591+
border-radius: 0 0 8px 8px;
592+
}
593+
594+
595+
530596
/**************************************************************************/
531597
/** Checkbox
532598
/**************************************************************************/

themes/default.css

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,67 @@ select:focus, textarea:focus, input:focus{
645645
}
646646

647647

648+
649+
/**************************************************************************/
650+
/** Tab Panel
651+
/**************************************************************************/
652+
/** The following classes are used to define the style for the tab panel.
653+
*/
654+
655+
.tab-panel {
656+
padding: 0 5px;
657+
}
658+
659+
.tab-bar {
660+
background-color: #0f6391; /* same as windows header */
661+
height: 30px;
662+
color: #fff;
663+
border: 1px solid #6393bf;
664+
border-width: 0 1px;
665+
}
666+
667+
.tab-active, .tab-inactive {
668+
padding: 0 12px;
669+
line-height: 30px;
670+
cursor: default;
671+
}
672+
673+
.tab-active {
674+
background-color: #379ad1;
675+
}
676+
677+
.tab-inactive {
678+
background: none;
679+
}
680+
681+
.tab-inactive:hover {
682+
background-color: #3dabe9;
683+
}
684+
685+
.tab-body {
686+
padding: 0;
687+
background-color: #fff;
688+
border: 1px solid #ccc;
689+
vertical-align: top;
690+
}
691+
692+
/** Special case when tab is the first component inside a window **/
693+
694+
.window-body table:first-child .tab-bar {
695+
background-color: #208EC9;
696+
}
697+
698+
.window-body table:first-child .tab-active {
699+
background-color: #379ad1;
700+
border-top: 2px solid #69b9ff;
701+
margin-top: -2px;
702+
}
703+
704+
.window-body table:first-child .tab-body {
705+
border: 0 none;
706+
border-radius: 0 0 8px 8px;
707+
}
708+
648709
/**************************************************************************/
649710
/** Table
650711
/**************************************************************************/

themes/default.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ javaxt.dhtml.style.default = {
1818
title: "panel-title window-title",
1919
button: "window-header-button",
2020
buttonBar: "window-header-button-bar",
21+
body: "window-body",
2122
mask: "window-mask"
2223
},
2324

@@ -87,7 +88,10 @@ javaxt.dhtml.style.default = {
8788
},
8889

8990
tabPanel: {
90-
91+
tabBar: "tab-bar",
92+
activeTab: "tab-active",
93+
inactiveTab: "tab-inactive",
94+
tabBody: "tab-body"
9195
},
9296

9397
switch: {

0 commit comments

Comments
 (0)