Changeset 37574


Ignore:
Timestamp:
2023-03-27T11:34:46+13:00 (13 months ago)
Author:
davidb
Message:

Changed from specifying background to winbox, to using class, so theme changes update dynamically

Location:
gs3-extensions/tabletop-dl/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/tabletop-dl/trunk/tabletop-theme-default.css

    r37572 r37574  
    4747
    4848#gs-home-open {
     49    /*
    4950    background-color: var(--gs-tabletop-primary-bg-col);
    5051    color: var(--gs-tabletop-primary-fg-col);
     52   */
     53    /* reverse colors */
     54    background-color: var(--gs-tabletop-primary-fg-col);
     55    color: var(--gs-tabletop-primary-bg-col);
    5156}
    5257
  • gs3-extensions/tabletop-dl/trunk/tabletop.css

    r37572 r37574  
    140140/* WinBox.js classes */
    141141
     142.winbox-frame {
     143    background-color: var(--gs-primary-bg-col);
     144}
     145
    142146/* inspired by interact.js drag demo div example */
    143 .winbox-info-window {
     147.winbox-body {
    144148    min-height: 6.5em;
    145149    margin: 0.5em;
     
    162166
    163167.wb-header {
    164     background-color: var(--gs-bg-primary-col);
     168    background-color: var(--gs-primary-bg-col);
    165169}
    166170
     
    189193*/
    190194
    191 /* Visual artefact turns up from box-shadow when roting */
     195/* Visual artefact turns up from box-shadow when rotating */
    192196/* This is due to the parent div dtaying in the same fixed place, but the
    193197   scaled and rotated inner elements breaking out of that shap */
    194198
    195 /* Perhaps we only want none, when its being rotated? */
    196 
    197 .winbox {
     199
     200.interact-rotatable-outer {
    198201    background-color: transparent;
    199 }
    200 
    201 .winbox {
    202202    box-shadow: none;
    203203}
  • gs3-extensions/tabletop-dl/trunk/tabletop.js

    r37572 r37574  
    2222        title: 'Collections',
    2323        //class: [ "no-min", "no-max", "no-full", "no-resize", "no-move" ],
    24         class: [ "no-min", "no-max", "no-full" ],
     24        class: [ "no-min", "no-max", "no-full", "winbox-frame" ],
    2525        x: 80,
    2626        y: 90,
     
    2828        height: "585px",
    2929        border: "0.3em",
    30         background: gs_primary_bg_color,
     30        // background: gs_primary_bg_color,
    3131        html: data
    3232       
     
    3636        $($tabletop_win_id+" .wb-header").css("touch-action","none");
    3737       
    38         $($tabletop_win_id+" .wb-body").addClass("winbox-info-window");
     38        $($tabletop_win_id+" .wb-body").addClass("winbox-body");
    3939       
    4040        let draggable_options = getCoreDraggableOptions();
  • gs3-extensions/tabletop-dl/trunk/winbox-interact.js

    r37572 r37574  
    330330        title: 'Document: Drag, Scale and Rotate',
    331331        //class: [ "no-min", "no-max", "no-full", "no-resize", "no-move" ],
    332         class: [ "no-min", "no-max", "no-full" ],       
     332        class: [ "no-min", "no-max", "no-full", "interact-rotatable-outer" ],       
    333333        x: 1000,
    334334        y: 80,
     
    355355        $win2.empty().append($scale_element_div);
    356356       
    357         $('#my-winbox2 .wb-body').addClass("winbox-info-window");
     357        $('#my-winbox2 .wb-body').addClass("winbox-body");
    358358   
    359359       
Note: See TracChangeset for help on using the changeset viewer.