Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 10/09/2013, à 17:59

Compte anonymisé

[RESOLU]Corriger un gtk-widgets.css

Bonjour,

J'ai quelques erreurs sur un fichier css d'un thème que j'ai récupéré sur gnome-look. Je pourrais demander à l'auteur mais moi et l'anglais, cela fait deux.

Dès que je lance un programme utilisant gtk3, j'ai les erreurs suivantes :

(polkit-gnome-authentication-agent-1:3635): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:210:71: '/*' in comment block

(polkit-gnome-authentication-agent-1:3635): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:210:112: Expected semicolon

(polkit-gnome-authentication-agent-1:3635): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:212:0: Expected semicolon

(polkit-gnome-authentication-agent-1:3635): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1049:83: '/*' in comment block

(polkit-gnome-authentication-agent-1:3635): Gtk-WARNING **: Theme parsing error: gtk-widgets-assets.css:19:24: Horizontal and vertical offsets are required

Je pense déjà à une qui serait des commentaires mal écrit de ma part dans le style   /**** EXAMPLE ******/ mais je ne suis pas sûr et une en furtant sur le net qui dirait de remplacer tout les 0 par 0px mais là aussi c'est le flou.
Il n'y a pas de problème niveau fonctionnement mais j'aurais aimé qu'il soit le plus propre possible.

Je poste le fichier si un connaisseur passe par ici. Merci à celui ou à ceux qui pourront m'aider.

                                                          
/* default */
* {
    engine: none;

    border-width: 1px;
    
    background-clip: padding-box;

    -GtkArrow-arrow-scaling: 0.6;
    -GtkButton-child-displacement-x: 0;
    -GtkButton-child-displacement-y: 1;
    -GtkButton-default-border: 0;
    -GtkButton-image-spacing: 0;
    -GtkButton-interior-focus: true;
    -GtkButton-inner-border: 1;
    -GtkCheckButton-indicator-size: 16;
    -GtkCheckMenuItem-indicator-size: 12;
    -GtkEntry-inner-border: 1;
    -GtkEntry-progress-border: 2;
    -GtkExpander-expander-size: 16;
    -GtkHTML-link-color: @link_color;
    -GtkIMHtml-hyperlink-color: @link_color;
    -GtkMenu-horizontal-padding: 0;
    -GtkMenu-vertical-padding: 0;  
    -GtkMenuBar-internal-padding: 0;
    -GtkMenuItem-arrow-scaling: 0.5;
    -GtkNotebook-initial-gap: 0;
    -GtkPaned-handle-size: 1;
    -GtkProgressBar-min-horizontal-bar-height: 45;  /* EPAISSEUR PULSAR */
    -GtkProgressBar-min-vertical-bar-width: 21;
    -GtkRange-slider-width: 13;
    -GtkRange-stepper-size: 12;
    -GtkRange-stepper-spacing: 1;
    -GtkRange-trough-under-steppers: 1;
    -GtkScale-trough-border: 1;
    -GtkScrollbar-activate-slider: 1;
    -GtkScrollbar-trough-border: 0;
    -GtkScrollbar-slider-width: 13;
    -GtkScrollbar-min-slider-length: 35;
    -GtkScrolledWindow-scrollbar-spacing: 0;
    -GtkScrolledWindow-scrollbars-within-bevel: 1;
    -GtkSeparatorMenuItem-horizontal-padding: 0;
    -GtkStatusbar-shadow-type: none;
    -GtkTextView-error-underline-color: @error_color;
    -GtkToolButton-icon-spacing: 6;
    -GtkToolItemGroup-expander-size: 11;
    -GtkToolbar-internal-padding: 1;
    -GtkTreeView-expander-size: 14;
    -GtkTreeView-vertical-separator: 0;
    -GtkWidget-wide-separators: true;
    -GtkWidget-separator-width: 1;
    -GtkWidget-separator-height: 1;
    -GtkWidget-focus-padding: 0;
    -GtkWidget-focus-line-width: 1;
    -GtkWidget-link-color: @link_color;
    -GtkWidget-visited-link-color: @visited_link_color;
    -GtkWindow-resize-grip-width: 0;
    -GtkWindow-resize-grip-height: 0;
    -WnckTasklist-fade-overlay-rect: 0;
}

GtkWindow {
    color: #101010;     /* COULEUR DES POLICES */
    text-shadow: 0 1 shade (#ffffff, 0.54);         /************ INCRUSTE POLICES !!!!!!! **********/
    

}

* {
    /* inherit the color from parent by default */
    color: inherit;
    background-color: #383838; /* PLAQUE OU SE TROUVENT TOUS LES CURSEURS */
}

/**********
 * states *
 **********/
*:insensitive {
    color: mix (@theme_fg_color, @theme_bg_color, 0.5);
}

*:active {
    background-color: shade (@theme_bg_color, 0.9);
}

*:active:hover:insensitive {
}

*:active:insensitive {
}

*:hover {
}

*:hover:insensitive {
}

*:selected,
*:selected:focus {
    background-color: alpha (@theme_selected_bg_color, 0.9);
    color: @theme_selected_fg_color;
}

/******************
 * common effects *
 ******************/
.button,
.progressbar,
GtkSwitch.slider {
    box-shadow: 1 1 inset alpha (@theme_bg_color, 0.3),
                1 1 inset alpha (@theme_bg_color, 0.3),
                -1 1 inset alpha (@theme_bg_color, 0.3),
                1 -1 inset alpha (@theme_bg_color, 0.3);
}

.entry,
.button:active,
.trough,
GtkSwitch.trough {
    box-shadow: 1 1 inset alpha (@dark_bg_color, 0.03),
                1 1 inset alpha (@dark_bg_color, 0.03),
                -1 1 inset alpha (@dark_bg_color, 0.03),
                1 -1 inset alpha (@dark_bg_color, 0.03);
}

.entry:focus {
    box-shadow: 1 2 inset alpha (@theme_selected_bg_color, 0.3),
                1 1 inset alpha (@theme_selected_bg_color, 0.3),
                -1 -1 inset alpha (@theme_selected_bg_color, 0.3);
}

.menuitem:hover {
    box-shadow: 1 1 inset alpha (@theme_selected_bg_color, 0.1),
                1 1 inset alpha (@theme_selected_bg_color, 0.1),
                -1 1 inset alpha (@theme_selected_bg_color, 0.1),
                1 -1 inset alpha (@theme_selected_bg_color, 0.1);
}

GtkScale.slider,
GtkScale.trough {
    box-shadow: 1 0 inset shade (@theme_bg_color, 0.7),
                0 1 inset shade (@theme_bg_color, 0.7),
                -1 0 inset shade (@theme_bg_color, 0.7),
                0 -1 inset shade (@theme_bg_color, 0.7);
}

.menubar .menuitem .scale.highlight.left,
.scale.highlight.left,
.scale.highlight.bottom {
    box-shadow: 1 0 inset shade (@theme_selected_bg_color, 0.7),
                0 1 inset shade (@theme_selected_bg_color, 0.7),
                -1 0 inset shade (@theme_selected_bg_color, 0.7),
                0 -1 inset shade (@theme_selected_bg_color, 0.7);
}

GtkScale.slider:insensitive,
GtkScale.trough:insensitive,
.scale.highlight.left:insensitive,
.scale.highlight.bottom:insensitive {
    box-shadow: 1 0 inset shade (@theme_bg_color, 0.8),
                0 1 inset shade (@theme_bg_color, 0.8),
                -1 0 inset shade (@theme_bg_color, 0.8),
                0 -1 inset shade (@theme_bg_color, 0.8);
}

.button:insensitive,
.primary-toolbar GtkComboBox,
.primary-toolbar .button *,
.primary-toolbar .button,
GtkCalendar.button,
GtkSwitch.slider:insensitive {
    box-shadow: none;
}

/*************
 * assistant *
 *************/
GtkAssistant .sidebar .highlight {
    font: bold;
}

GtkAssistant .sidebar {
    background-color: @theme_bg_color;
    border-right-color: shade (@theme_bg_color, 0.7);
    border-radius: 0;
    border-style: solid;
    border-width: 0 1px 0 0;
    padding: 12px;

    color: @theme_fg_color;
}

/**************
 * background *
 **************/
.background {
    background-color: #383838;   /* PREMIER CONTOUR EXTERIEUR PAVUCONTROL */
    border-width: 0;

/****************************************************************************************************************
*   background-image: -gtk-gradient (linear, left top, left bottom,   
*                                    from (shade (#383838, 0.70)),    /*** ESSAI DE DEGRADE  A VIRER AU CAS **/ *
*                                    to (shade (#7099C6, 0.50))); 
*****************************************************************************************************************/    



}

/**********
 * button *
 **********/
.button {
    padding: 3px;

}

GtkComboBox,
.button {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (shade (@theme_bg_color, 1.09), 1.04)),
                                     color-stop (0.49, shade (shade (@theme_bg_color, 1.01), 1.04)),
                                     color-stop (0.50, shade (@theme_bg_color, 1.01)),
                                     to (shade (@theme_bg_color, 0.91)));
    border-radius: 4px;
    border-color: shade (@theme_bg_color, 0.7);
    border-style: solid;

    color: #101010;   /* COULEUR POLICE DANS BOUTON AFFICHER DE PAVUCONTROL */
    text-shadow: 0 1 shade (#424242, 1.08);                    /***************************************** INCRUSTE POLICES ***************/
}

.button:active {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (shade (@theme_bg_color, 0.98), 1.04)),
                                     color-stop (0.49, shade (shade (@theme_bg_color, 0.91), 1.04)),
                                     color-stop (0.50, shade (@theme_bg_color, 0.91)),
                                     to (shade (@theme_bg_color, 0.82)));
}

.button:hover,
.button:active:hover {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (shade (@theme_selected_bg_color, 1.31), 1.04)),
                                     color-stop (0.49, shade (shade (@theme_selected_bg_color, 1.21), 1.04)),
                                     color-stop (0.50, shade (@theme_selected_bg_color, 1.21)),
                                     to (shade (@theme_selected_bg_color, 1.09)));
}

.button:insensitive {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (shade (@theme_bg_color, 1.09), 1.04)),
                                     color-stop (0.49, shade (shade (@theme_bg_color, 1.01), 1.04)),
                                     color-stop (0.50, shade (@theme_bg_color, 1.01)),
                                     to (shade (@theme_bg_color, 0.91)));
    border-color: shade (@theme_bg_color, 0.8);
}

.button:insensitive:active {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (shade (@theme_bg_color, 0.98), 1.04)),
                                     color-stop (0.49, shade (shade (@theme_bg_color, 0.91), 1.04)),
                                     color-stop (0.50, shade (@theme_bg_color, 0.91)),
                                     to (shade (@theme_bg_color, 0.82)));
}

GtkComboBox.combobox-entry .button,
.notebook .button,
.inline-toolbar.toolbar .button {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (shade (@theme_bg_color, 1.09), 1.04)),       /**   LES BOUTONS DEROULANTS PAVUCONTROL *****/
                                     color-stop (0.49, shade (shade (@theme_bg_color, 1.01), 1.04)),
                                     color-stop (0.50, shade (@theme_bg_color, 1.01)),
                                     to (shade (@theme_bg_color, 0.91)));
    border-color: shade (@theme_bg_color, 0.7);
    padding: 1px;
}

GtkComboBox.combobox-entry .button:active,
.notebook .button:active,
.inline-toolbar.toolbar .button:active {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (shade (@theme_bg_color, 0.98), 1.04)),
                                     color-stop (0.49, shade (shade (@theme_bg_color, 0.91), 1.04)),
                                     color-stop (0.50, shade (@theme_bg_color, 0.91)),
                                     to (shade (@theme_bg_color, 0.82)));
}

GtkComboBox.combobox-entry .button:hover,
GtkComboBox.combobox-entry .button:active:hover,
.notebook .button:hover,
.notebook .button:active:hover,
.inline-toolbar.toolbar .button:hover,
.inline-toolbar.toolbar .button:active:hover {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (shade (@theme_selected_bg_color, 1.31), 1.04)),
                                     color-stop (0.49, shade (shade (@theme_selected_bg_color, 1.21), 1.04)),
                                     color-stop (0.50, shade (@theme_selected_bg_color, 1.21)),
                                     to (shade (@theme_selected_bg_color, 1.09)));
}

GtkComboBox.combobox-entry .button:insensitive,
.notebook .button:insensitive,
.inline-toolbar.toolbar .button:insensitive {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (shade (@theme_bg_color, 1.09), 1.04)),
                                     color-stop (0.49, shade (shade (@theme_bg_color, 1.01), 1.04)),
                                     color-stop (0.50, shade (@theme_bg_color, 1.01)),
                                     to (shade (@theme_bg_color, 0.91)));
    border-color: shade (@theme_bg_color, 0.8);
}

/* Middle button */
.linked .entry,
.linked .button,
.linked .button:active,
.linked .button:active:hover,
.linked .button:insensitive,
.primary-toolbar .linked .entry,
.primary-toolbar .linked .button,
.primary-toolbar .linked .button:active,
.primary-toolbar .linked .button:active:hover,
.primary-toolbar .linked .button:insensitive {
    border-width: 1px;
    border-right-width: 0;

    border-radius: 0;
}

/* Leftmost button */
.linked .entry:first-child,
.linked .button:first-child,
.linked .button:active:first-child,
.linked .button:active:hover:first-child,
.linked .button:insensitive:first-child,
.primary-toolbar .linked .entry:first-child,
.primary-toolbar .linked .button:first-child,
.primary-toolbar .linked .button:active:first-child,
.primary-toolbar .linked .button:active:hover:first-child,
.primary-toolbar .linked .button:insensitive:first-child {
    border-width: 1px;
    border-right-width: 0;

    border-radius: 2px;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

/* Rightmost button */
.linked .entry:last-child,
.linked .button:last-child,
.linked .button:active:last-child,
.linked .button:active:hover:last-child,
.linked .button:insensitive:last-child,
.primary-toolbar .linked .entry:last-child,
.primary-toolbar .linked .button:last-child,
.primary-toolbar .linked .button:active:last-child,
.primary-toolbar .linked .button:active:hover:last-child,
.primary-toolbar .linked .button:insensitive:last-child {
    border-width: 1px;

    border-radius: 2px;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}

/* Linked single button */
.linked .entry:only-child,
.linked .button:only-child,
.linked .button:active:only-child,
.linked .button:active:hover:only-child,
.linked .button:insensitive:only-child,
.primary-toolbar .linked .entry:only-child,
.primary-toolbar .linked .button:only-child,
.primary-toolbar .linked .button:active:only-child,
.primary-toolbar .linked .button:active:hover:only-child,
.primary-toolbar .linked .button:insensitive:only-child {
    border-width: 1px;

    border-radius: 2px;
}

/****************
 * cell and row *
 ****************/
.cell {
    background-color: @theme_base_color;
    border-radius: 0;
    border-width: 0;
}

row:selected,
row:selected:focus {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (shade (@theme_selected_bg_color, 0.92), 1.04)),
                                     color-stop (0.49, shade (shade (@theme_selected_bg_color, 0.86), 1.04)),
                                     color-stop (0.50, shade (@theme_selected_bg_color, 0.86)),
                                     to (shade (@theme_selected_bg_color, 0.77)));
    border-color: shade (@theme_selected_bg_color, 0.97);
    border-style: solid;
    border-width: 1px 0;

    color: @theme_selected_fg_color;
}

/*******************
 * check and radio *
 *******************/
.check,
.radio,
.check:insensitive,
.radio:insensitive {
    background-color: transparent;
    border-style: none;
}

GtkCheckButton:hover,
GtkCheckButton:active:hover,
GtkCheckButton:selected,
GtkCheckButton:selected:focus {
    background-color: transparent;
}

/*****************
 * column-header *
 *****************/
column-header .button,
column-header .button:active,
.notebook column-header .button,
.notebook column-header .button:active {
    border-radius: 0;
    border-width: 0 1px 1px 0;
}

column-header .button,
.notebook column-header .button {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (@theme_bg_color, 1.24)),
                                     color-stop (0.50, shade (@theme_bg_color, 1.15)),
                                     to (shade (@theme_bg_color, 0.91)));
    border-color: shade (@theme_bg_color, 0.9);
}

column-header .button:hover,
.notebook column-header .button:hover {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (@theme_selected_bg_color, 1.24)),
                                     color-stop (0.50, shade (@theme_selected_bg_color, 1.15)),
                                     to (shade (@theme_selected_bg_color, 0.91)));
}

column-header:last-child .button {
    border-width: 0 0 1px 0;
}

/******************
 * combobox entry *
 ******************/
.primary-toolbar GtkComboBox.combobox-entry .entry,
.primary-toolbar GtkComboBox.combobox-entry .entry:active,
.primary-toolbar GtkComboBox.combobox-entry .entry:focus,
.primary-toolbar GtkComboBox.combobox-entry .entry:insensitive,
GtkComboBox.combobox-entry .entry,
GtkComboBox.combobox-entry .entry:active,
GtkComboBox.combobox-entry .entry:focus,
GtkComboBox.combobox-entry .entry:insensitive {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-width: 1px 0 1px 1px;
}

.primary-toolbar GtkComboBox.combobox-entry .button,
.primary-toolbar GtkComboBox.combobox-entry .button:hover,
.primary-toolbar GtkComboBox.combobox-entry .button:active,
.primary-toolbar GtkComboBox.combobox-entry .button:insensitive,
GtkComboBox.combobox-entry .button,
GtkComboBox.combobox-entry .button:hover,
GtkComboBox.combobox-entry .button:active,
GtkComboBox.combobox-entry .button:insensitive {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-width: 1px 1px 1px 1px;
}

GtkComboBox.combobox-entry .button,
GtkComboBox.combobox-entry .button:hover,
GtkComboBox.combobox-entry .button:active {
    border-color: shade (@theme_bg_color, 0.7);
}

GtkComboBox.combobox-entry .button:insensitive {
    border-color: shade (@theme_bg_color, 0.8);
}

/****************
 * drawing area *
 ****************/
GtkDrawingArea {
    background-color: transparent;
}

/***********
* calendar *
************/
GtkCalendar {
    padding: 2px;
}

GtkCalendar.view,
GtkCalendar.header,
GtkCalendar.button,
GtkCalendar.button:insensitive {
    background-image: none;
    background-color: transparent;
    border-width: 0;
}

.highlight,
GtkCalendar.highlight {
    background-color: transparent;
    color: shade (@theme_fg_color, 0.6);
    border-width: 0;
}

/*********
 * entry *
 *********/
.entry {
    background-image: none;
    background-color: @theme_base_color;
    border-color: shade (@theme_bg_color, 0.7);
    border-radius: 2px;
    border-style: solid;
    padding: 3px 5px 3px 5px;

    color: @theme_text_color;
}

.entry:selected,
.entry:selected:focus {
    background-color: @theme_selected_bg_color;

    color: @theme_selected_fg_color;
}

.entry:insensitive {
    background-color: shade (@theme_bg_color, 0.96);
    background-image: none;
    border-color: shade (@theme_bg_color, 0.8);

    color: mix (@theme_text_color, @theme_base_color, 0.4);
}

.primary-toolbar .entry.progressbar,
.primary-toolbar .entry.progressbar,
.entry.progressbar {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (shade (@theme_selected_bg_color, 0.92), 1.04)),
                                     color-stop (0.49, shade (shade (@theme_selected_bg_color, 0.86), 1.04)),
                                     color-stop (0.50, shade (@theme_selected_bg_color, 0.86)),
                                     to (shade (@theme_selected_bg_color, 0.77)));
    border-radius: 2px;
    border-width: 0;

    color: @theme_selected_fg_color;
}

/************
 * expander *
 ************/
.expander {
    border-style: solid;
    border-width: 1px;
    border-radius: 2px;
    border-color: alpha (@theme_fg_color, 0.5);

    color: alpha (@theme_fg_color, 0.6);
    background-color: @theme_base_color;
}

.expander:hover {
    background-color: shade (@theme_bg_color, 1.02);
}

/*********
 * frame *
 *********/
.frame {
    border-radius: 2px;
    border-style: solid;
    border-color: shade (@theme_bg_color, 0.7);
}

.frame:insensitive {
    border-color: shade (@theme_bg_color, 0.7);
}

/************
 * iconview *
 ************/
GtkIconView {
    background-color: transparent;
}

GtkIconView.view.cell:selected,
GtkIconView.view.cell:selected:focus {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (shade (@theme_selected_bg_color, 0.92), 1.04)),
                                     color-stop (0.49, shade (shade (@theme_selected_bg_color, 0.86), 1.04)),
                                     color-stop (0.50, shade (@theme_selected_bg_color, 0.86)),
                                     to (shade (@theme_selected_bg_color, 0.77)));
    border-radius: 2px;
    border-style: solid;
    border-width: 1px;

    color: @theme_selected_fg_color;
    border-color: shade (@theme_bg_color, 0.7);
}

.view.rubberband,
.rubberband {
    background-color: alpha (@theme_selected_bg_color, 0.3);
    border-color: @theme_selected_bg_color;
    border-radius: 0;
    border-style: solid;
    border-width: 1px;
}

/*********
 * image *
 *********/
GtkImage,
GtkImage:insensitive {
    background-color: transparent;   /* COULEUR ICONES SUR BOUTONS */
}

/*********
 * label *
 *********/
GtkLabel,
GtkLabel:insensitive {
    background-color: transparent;
}

/***********
 * infobar *
 ***********/
.info {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (@info_bg_color, 1.09)),
                                     color-stop (0.50, shade (@info_bg_color, 1.01)),
                                     to (shade (@info_bg_color, 0.91)));
    border-style: solid;
    border-width: 1px;

    color: @info_fg_color;
    border-color: shade (@info_bg_color, 0.7);
}

.warning {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (@warning_bg_color, 1.09)),
                                     color-stop (0.50, shade (@warning_bg_color, 1.01)),
                                     to (shade (@warning_bg_color, 0.91)));
    border-style: solid;
    border-width: 1px;

    color: @warning_fg_color;
    border-color: shade (@warning_bg_color, 0.7);
}

.question {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (@question_bg_color, 1.09)),
                                     color-stop (0.50, shade (@question_bg_color, 1.01)),
                                     to (shade (@question_bg_color, 0.91)));
    border-style: solid;
    border-width: 1px;

    color: @question_fg_color;
    border-color: shade (@question_bg_color, 0.7);
}

.error {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (@error_bg_color, 1.09)),
                                     color-stop (0.50, shade (@error_bg_color, 1.01)),
                                     to (shade (@error_bg_color, 0.91)));
    border-style: solid;
    border-width: 1px;

    color: @error_fg_color;
    border-color: shade (@error_bg_color, 0.7);
}

/*******************
 * symbolic images *
 *******************/
.image {
    color: alpha (@theme_fg_color, 0.5);
}

.image:hover {
    color: @theme_fg_color;
}

.image:selected {
    color: @theme_selected_fg_color;
}

/*****************
 * miscellaneous *
 *****************/
.floating-bar {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (@theme_bg_color, 1.09)),
                                     color-stop (0.50, shade (@theme_bg_color, 1.01)),
                                     to (shade (@theme_bg_color, 0.91)));
    border-color: shade (@theme_bg_color, 0.7);
    border-radius: 2px;
    border-width: 1px;
    border-style: solid;
}

.floating-bar.top {
    border-top-width: 0;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
}

.floating-bar.right {
    border-right-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.floating-bar.bottom {
    border-bottom-width: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.floating-bar.left {
    border-left-width: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.floating-bar .button {
    background-color: transparent;
    background-image: none;

    border-style: none;

    -GtkButton-image-spacing: 0;
    -GtkButton-inner-border: 0;
}

.view.dim-label,
.dim-label,
.dim-label:hover,
.dim-label:focus {
    color: mix (@theme_fg_color, @theme_bg_color, 0.5);
}

.dim-label:selected,
.dim-label:selected:focus {
    color: mix (@theme_selected_fg_color, @theme_bg_color, 0.5);
}

.dnd {
    border-color: shade (@theme_selected_bg_color, 1.12);
    border-width: 1px;
    border-style: solid;
}

.grip {
    background-color: transparent;
}

/********
 * menu *
 ********/
.menu {
    background-color: @dark_bg_color;   /* CHOIX SUR MENU DEROULANT VERS AFFICHER */
    border-width: 0;
    padding: 0;

    color: @dark_fg_color;
}

.menu:selected {
    background-color: @theme_selected_bg_color;
}

.menu.button:hover,
.menu.button:active,
.menu.button:active:insensitive,
.menu.button:insensitive,
.menu.button {
    background-color: @dark_bg_color;
    background-image: none;
    border-style: none;
}

/***********
 * menubar *
 ***********/
.menubar {
    -GtkWidget-window-dragging: true;

    background-color: shade (@theme_fg_color, 0.95);
    background-image: none;
    border-width: 0;

    color: @dark_fg_color;
}

/***************
 * menubaritem *
 ***************/
.menubar.menuitem {
    background-color: @dark_bg_color;
    border-radius: 2px 2px 0 0;
    border-width: 1px 1px 0 1px;

    color: @dark_fg_color;
}

.menubar.menuitem:hover,
.menubar .menuitem:hover {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (shade (@theme_selected_bg_color, 0.92), 1.04)),
                                     color-stop (0.49, shade (shade (@theme_selected_bg_color, 0.86), 1.04)),
                                     color-stop (0.50, shade (@theme_selected_bg_color, 0.86)),
                                     to (shade (@theme_selected_bg_color, 0.77)));


    color: @theme_selected_fg_color;
    border-color: transparent;
}

/************
 * menuitem *
 ************/
.menuitem {
    color: @dark_fg_color;
    border-radius: 0;
    border-style: solid;
    border-width: 1px;
    padding: 3px 2px;
}

/* Workaround for lp:949368 */
GtkComboBox .menuitem * {
    color: @dark_fg_color;
}

GtkComboBox .menuitem *:hover {
    color: @theme_selected_fg_color;
}

.menuitem.check,
.menuitem.radio,
.menuitem.check:hover,
.menuitem.radio:hover,
.menuitem.check:insensitive,
.menuitem.radio:insensitive {
    background-image: none;
    background-color: transparent;
    border-style: none;
}

.menuitem.check:active,
.menuitem.radio:active {
    background-color: transparent;
    border-style: none;
}

.menuitem:hover,
.menu .menuitem:hover {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (shade (@theme_selected_bg_color, 0.92), 1.04)),
                                     color-stop (0.49, shade (shade (@theme_selected_bg_color, 0.86), 1.04)),
                                     color-stop (0.50, shade (@theme_selected_bg_color, 0.86)),
                                     to (shade (@theme_selected_bg_color, 0.77)));

    color: @theme_selected_fg_color;
    border-color: transparent;
    border-radius: 2px;
}

.menuitem:insensitive,
.menuitem *:insensitive {
    color: mix (@dark_fg_color, @dark_bg_color, 0.5);
}

.menuitem GtkCalendar,
.menuitem GtkCalendar.button,
.menuitem GtkCalendar.header,
.menuitem GtkCalendar.view {
	background-color: transparent;
	background-image: none;
}

.menuitem .entry {
    background-color: @theme_base_color;
    background-image: none;

    color: @theme_text_color;
    border-color: shade (@theme_bg_color, 0.7);
}

.menuitem .accelerator {
    color: alpha (@dark_fg_color, 0.6);
}

.menuitem .accelerator:hover {
    color: alpha (@theme_selected_fg_color, 0.8);
}

.menuitem .accelerator:insensitive {
    color: alpha (mix (@dark_fg_color, @dark_bg_color, 0.5), 0.6);
}

/************
 * notebook *
 ************/
/*****************************
 * BOUTONS METALLO BLEU MENU *
 *****************************/

.notebook {
    background-color: shade (#383838, 1.00);                                         
    background-image: none; 
    border-radius: 0;    /* LISERET + ARRONDI CONTOUR BOUTONS ET FENETRE */
    border-style: solid; /* SI "solid" IMPRESSION DE CONTOUR NOIR */
    border-color: shade (#383838, 0.7);
    padding: 0;
}

.notebook:insensitive {
    border-color: shade (#ff0000, 0.7);
}

.notebook GtkViewport {
    background-color: shade (#383838, 1.00);   /* COULEUR DE FOND JUSTE SOUS PULSAR */
    

}

.notebook tab {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (#353535, 2.49)),    /* DEGRADE DESSUS BOUTONS */
                                     to (shade (#7099C6, 0.65)));
    border-color: shade (#383838, 0.7); /* COULEUR CONTOUR BOUTONS PAVUCONTROL */
}

.notebook tab:active {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (#353535, 0.49)),
                                     to (shade (#7099C6, 0.95)));    /* IDEM ACTIVE */
}

.notebook tab.top {
    padding: 5px 3px 1px;
    border-bottom: 0;
}

.notebook tab.bottom {
    padding: 1px 3px 5px;
}

.notebook tab.left,
.notebook tab.right {
    background-color: @theme_bg_color;
    padding: 3px;
}

.notebook tab.left:active,
.notebook tab.right:active {
    background-image: none;
    background-color: shade (@theme_bg_color, 1.03);
}

/******************
 * pane separator *
 ******************/
.sidebar .pane-separator,
.pane-separator {
    color: shade (@theme_bg_color, 0.7);
    background-color: shade (@theme_bg_color, 0.7);
    border-width: 0;
}

/*************************
 * progressbar and scale *
 *************************/
GtkScale,
GtkProgressBar {
    border-radius: 2px;
    border-width: 1px;
    padding: 6px;         /* SI 2PX MAUVAIS DECALAGE PULSAR ET LOGEMENT DE 1 MN & PLUS REDUIRE HAUTEUR DES LED DANS LOGEMENT */
}

.progressbar,
.progressbar row,
.progressbar row:hover,
.progressbar row:selected,
.progressbar row:selected:focus {
    border-style: solid;
    border-width: 1px;
    border-radius: 0;
    border-color: shade (@theme_selected_bg_color, 0.7);
}

.progressbar.vertical {
    border-style: solid;
    border-width: 1px;
    border-radius: 0;
    border-color: shade (@theme_selected_bg_color, 0.7);
}

.trough,
.trough.vertical,
.trough row,
.trough row:hover,
.trough row:selected,
.trough row:selected:focus {
    background-image: none;
    background-color: shade (#202020, 9.2);    /* INCRUSTE ENCOCHE PULSAR */
    border-style: solid;
    border-radius: 3px;
    border-width: 2px;

    color: @theme_text_color;
    border-color: shade (@theme_bg_color, 0.7);

/******************************************************************************************************************************/
/*  background-image: -gtk-gradient (linear, left top, left bottom,                                                           */
/*                                   from (shade (shade (#202020, 0.20), 1.04)),  /* JOUER ICI POUR OMBRE LOGEMENT PULSAR     */
/*                                   color-stop (0.15, shade (shade (@theme_selected_bg_color, 1.21), 1.04)),                 */  
/*                                   color-stop (0.95, shade (@theme_selected_bg_color, 1.21)),                               */                  
/*                                   to (shade (@theme_selected_bg_color, 1.09)));                                            */
/******************************************************************************************************************************/
    background-image: -gtk-gradient (linear, left top, left bottom, 
                                     from (shade (shade (#3D4C5D, 0.05), 1.04)),  /* JOUER ICI POUR OMBRE LOGEMENT PULSAR */
                                     color-stop (0.15, shade (shade (#333333, 1.21), 1.04)),
                                     color-stop (0.95, shade (#3D4C5D, 0.85)),
                                     to (shade (@3D4C5D, 1.09)));


}

GtkScale {
    -GtkRange-slider-width: 15;    /* AVOIR DES FENTES POUR LES LOGEMENTS DES CURSEURS PAVUCONTROL ENORMES SI VALEUR IMPORTANTS */
    -GtkRange-trough-border: 1;    /* REDUIR EPAISSEUR LOGEMENT */
    -GtkScale-slider-length: 96;   /* LONGUEUR DES BOUTONS PAVUCONTROL */
}

GtkScale.vertical {
    -GtkScale-slider-length: 24;
}

GtkScale.slider {
    color: #4EFF00;   /* transparent viré POUR MARQUEUR ROUGE SUR BOUTONS PAVUCONTROL */
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (shade (#729AC7, 1.09), 1.04)),
                                     color-stop (0.49, shade (shade (#383838, 1.01), 1.04)),
                                     color-stop (0.50, shade (#383838, 1.01)),
                                     to (shade (#FF0010, 0.51)));
    border-radius: 1px;   /*  BOUTONS PAVUCONTROL ARRONDI */
}

GtkScale.slider:hover {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (shade (@theme_selected_bg_color, 1.31), 1.04)),
                                     color-stop (0.49, shade (shade (@theme_selected_bg_color, 1.21), 1.04)),
                                     color-stop (0.50, shade (@theme_selected_bg_color, 1.21)),
                                     to (shade (@theme_selected_bg_color, 1.09)));
}

GtkScale.slider:insensitive {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (shade (@theme_bg_color, 1.09), 1.04)),
                                     color-stop (0.49, shade (shade (@theme_bg_color, 1.01), 1.04)),
                                     color-stop (0.50, shade (@theme_bg_color, 1.01)),
                                     to (shade (@theme_bg_color, 0.91)));
}

GtkScale.slider.vertical {
    background-image: -gtk-gradient (linear, left top, right top,
                                     from (shade (shade (@theme_bg_color, 1.09), 1.04)),
                                     color-stop (0.49, shade (shade (@theme_bg_color, 1.01), 1.04)),
                                     color-stop (0.50, shade (@theme_bg_color, 1.01)),
                                     to (shade (@theme_bg_color, 0.91)));
}

GtkScale.slider.vertical:hover {
    background-image: -gtk-gradient (linear, left top, right top,
                                     from (shade (shade (@theme_selected_bg_color, 1.31), 1.04)),
                                     color-stop (0.49, shade (shade (@theme_selected_bg_color, 1.21), 1.04)),
                                     color-stop (0.50, shade (@theme_selected_bg_color, 1.21)),
                                     to (shade (@theme_selected_bg_color, 1.09)));
}

GtkScale.slider.vertical:insensitive {
    background-image: -gtk-gradient (linear, left top, right top,
                                     from (shade (shade (@theme_bg_color, 1.09), 1.04)),
                                     color-stop (0.49, shade (shade (@theme_bg_color, 1.01), 1.04)),
                                     color-stop (0.50, shade (@theme_bg_color, 1.01)),
                                     to (shade (@theme_bg_color, 0.91)));
}

GtkScale.mark {
    border-color: shade (@theme_bg_color, 0.7);
}

GtkScale.trough,
GtkScale.trough.vertical {
    background-image: none;
    background-color: shade (@theme_bg_color, 0.85);   /* INTERIEUR LIGNE CURSEUR PAVUCONTROL */
    border-color: #7B7B7B;   /* COULEUR GRISE AUTOUR ENCOCOCHE CURSEURS */
}

.menubar .menuitem .scale.highlight.left,
.scale.highlight.left,
.scale.highlight.bottom {
    background-image: none;
    background-color: @theme_selected_bg_color;   /* COULEUR FENTE GAUCHE CURSEUR HORIZONTAL */
    border-color: #7B7B7B;
}

GtkScale.trough,
.menubar .menuitem .scale.highlight.left,
.scale.highlight.left {
	border-width: 2px 0;   /* EPAISSEUR LIGNE CLAIR (GRIS) AUTOUR DES LOGEMENTS DES CURSEURS PAVUCONTROL */
	border-radius: 4px;
/**********************************************************************/
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (#3D4C5D, 0.01)),     /*** ESSAI DE DEGRADE BLEU A VIRER AU CAS ***/
                                     to (shade (#3D4C5D, 1.45)));
/**********************************************************************/

}

GtkScale.trough.vertical,
.scale.highlight.bottom {
	border-width: 0 6px;
	border-radius: 4px;
}


GtkScale.trough:insensitive,
GtkScale.trough.vertical:insensitive,
.scale.highlight.left:insensitive,
.scale.highlight.bottom:insensitive {
    background-image: none;
    background-color: shade (@theme_bg_color, 0.9);
}

/*************
 * scrollbar *
 *************/
.scrollbar {
    background-image: none;
    border-style: solid;
}

.scrollbar.trough,
.scrollbar.trough.horizontal,
.scrollbar.trough.vertical {
    background-image: none;
    background-color: @theme_bg_color;
    border-width: 1px;
    border-color: shade (@theme_bg_color, 0.9);
    border-radius: 0;
}

.scrollbar.slider,
.scrollbar.slider.vertical {
    background-image: -gtk-gradient (linear, left top, right top,
                                     from (shade (@theme_selected_bg_color, 0.91)),
                                     color-stop (0.50, shade (@theme_selected_bg_color, 0.96)),
                                     to (shade (@theme_selected_bg_color, 0.91)));
    border-width: 1px;
    border-color: shade (@theme_selected_bg_color, 0.97);
    border-radius: 0;

    color: shade (@theme_selected_bg_color, 0.97);
}

.scrollbar.slider.horizontal {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (@theme_selected_bg_color, 0.91)),
                                     color-stop (0.50, shade (@theme_selected_bg_color, 0.96)),
                                     to (shade (@theme_selected_bg_color, 0.91)));
}

.scrollbar.button,
.scrollbar.button.vertical,
.scrollbar.button.horizontal {
    background-image: none;
    background-color: @theme_bg_color;
    border-width: 0;

    color: shade (@theme_bg_color, 0.6);
}

.scrollbar.slider:hover,
.scrollbar.slider.vertical:hover {
    background-image: -gtk-gradient (linear, left top, right top,
                                     from (shade (@theme_selected_bg_color, 0.95)),
                                     color-stop (0.50, shade (@theme_selected_bg_color, 0.99)),
                                     to (shade (@theme_selected_bg_color, 0.95)));
}

.scrollbar.slider.horizontal:hover {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (@theme_selected_bg_color, 0.95)),
                                     color-stop (0.50, shade (@theme_selected_bg_color, 0.99)),
                                     to (shade (@theme_selected_bg_color, 0.95)));
}

.scrollbar.button:insensitive,
.scrollbar.button.vertical:insensitive,
.scrollbar.button.horizontal:insensitive {
    color: shade (@theme_bg_color, 0.8);
}

/* overlay scrollbar */
OsThumb {
    color: shade (@theme_bg_color, 0.7);
}

OsThumb:selected,
OsScrollbar:selected {
    background-color: @theme_selected_bg_color;
}

OsThumb:active,
OsScrollbar:active {
    background-color: shade (@theme_bg_color, 0.8);
}

OsThumb:insensitive,
OsScrollbar:insensitive {
    background-color: shade (@theme_bg_color, 0.97);
}

/*******************
 * scrolled window *
 *******************/
GtkScrolledWindow.frame {
    border-color: shade (@theme_bg_color, 0.7);
    border-radius: 0;
    border-style: solid;
}

/*************
 * separator *
 *************/
.separator {
    color: shade (@theme_bg_color, 0.9);
    border-color: shade (@theme_bg_color, 0.9);
    border-style: solid;
}

.button .separator,
.button.separator {
    border-color: shade (@theme_bg_color, 0.9);
}

.notebook .button .separator,
.notebook .button.separator {
    border-color: shade (@theme_bg_color, 0.9);
}

.button .separator:insensitive,
.button.separator:insensitive {
    border-color: shade (@theme_bg_color, 0.9);
}

.menuitem.separator,
.menubar .menuitem.separator,
.primary-toolbar .menuitem.separator {
    -GtkMenuItem-horizontal-padding: 0;
    -GtkWidget-separator-height: 1;

    color: shade (@dark_bg_color, 0.9);
    border-color: shade (@dark_bg_color, 1.2);
}

/***********
 * sidebar *
 ***********/
.sidebar,
.sidebar.view,
.sidebar .view {
    background-color: @theme_bg_color;
}

.sidebar .frame {
    border-width: 0;
}

/**************
 * spinbutton *
 **************/
.spinbutton.button:active,
.spinbutton.button:insensitive,
.notebook .spinbutton.button:active,
.notebook .spinbutton.button:insensitive,
.spinbutton.button,
.notebook .spinbutton.button {
    border-radius: 0;
    border-width: 1px 0 1px 1px;
}

.spinbutton.button:active:last-child,
.spinbutton.button:insensitive:last-child,
.notebook .spinbutton.button:active:last-child,
.notebook .spinbutton.button:insensitive:last-child,
.spinbutton.button:last-child,
.notebook .spinbutton.button:last-child {
    border-radius: 0 2px 2px 0;
    border-width: 1px;
}

.spinbutton.button,
.notebook .spinbutton.button {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (shade (@theme_bg_color, 1.09), 1.04)),
                                     color-stop (0.49, shade (shade (@theme_bg_color, 1.01), 1.04)),
                                     color-stop (0.50, shade (@theme_bg_color, 1.01)),
                                     to (shade (@theme_bg_color, 0.91)));
    border-color: shade (@theme_bg_color, 0.7);
}

.spinbutton.button:insensitive,
.notebook .spinbutton.button:insensitive {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (shade (@theme_bg_color, 1.09), 1.04)),
                                     color-stop (0.49, shade (shade (@theme_bg_color, 1.01), 1.04)),
                                     color-stop (0.50, shade (@theme_bg_color, 1.01)),
                                     to (shade (@theme_bg_color, 0.91)));
    border-color: shade (@theme_bg_color, 0.8);

    color: shade (@theme_bg_color, 0.7);
}

.spinbutton,
.spinbutton:hover {
    color: @theme_fg_color;
}

/***********
 * spinner *
 ***********/
.spinner:active {
     transition: 750ms linear loop;
}

/*************
 * statusbar *
 *************/
GtkStatusbar {
}

/**********
 * switch *
 **********/
GtkSwitch {
    font: bold condensed 9;
    border-radius: 2px;
    padding: 0;
}

GtkSwitch.trough {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (@theme_bg_color, 0.96)),
                                     color-stop (0.50, shade (@theme_bg_color, 0.91)),
                                     to (shade (@theme_bg_color, 0.96)));

    color: @theme_fg_color;
    border-color: shade (@theme_bg_color, 0.7);
}

GtkSwitch.trough:active {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (@theme_selected_bg_color, 0.96)),
                                     color-stop (0.50, shade (@theme_selected_bg_color, 0.91)),
                                     to (shade (@theme_selected_bg_color, 0.96)));

    color: @theme_selected_fg_color;
    border-color: shade (@theme_selected_bg_color, 0.7);
}

GtkSwitch.trough:insensitive {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (@theme_bg_color, 0.96)),
                                     color-stop (0.50, shade (@theme_bg_color, 0.91)),
                                     to (shade (@theme_bg_color, 0.96)));

    color: shade (@theme_bg_color, 0.7);
    border-color: shade (@theme_bg_color, 0.8);
}

GtkSwitch.slider {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (@theme_bg_color, 1.09)),
                                     color-stop (0.50, shade (@theme_bg_color, 1.01)),
                                     to (shade (@theme_bg_color, 0.91)));
    border-style: solid;
    border-color: shade (@theme_bg_color, 0.7);
}

GtkSwitch.slider:insensitive {
    border-color: shade (@theme_bg_color, 0.8);
}

/************
 * textview *
 ************/
GtkTextView {
    background-color: @theme_base_color;
}

/***********
 * toolbar *
 ***********/
.toolbar {
    border-style: none;
}

/* primary-toolbar */
.primary-toolbar,
.primary-toolbar .toolbar,
.primary-toolbar.toolbar {
    -GtkWidget-window-dragging: true;

    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (@theme_bg_color, 0.84)),
                                     to (shade (@theme_bg_color, 1.0)));
    border-style: none;
    border-width: 0;
    padding: 2px;

    color: @theme_fg_color;
}

.primary-toolbar GtkComboBox,
.primary-toolbar .button *,
.primary-toolbar .button {
    background-color: transparent;
    background-image: none;
    border-color: transparent;
    border-radius: 2px;
    border-width: 1px;
    padding: 2px;

    color: @theme_fg_color;
}

.primary-toolbar .raised .button,
.primary-toolbar .raised.button,
.primary-toolbar .button:hover,
.primary-toolbar .button:active,
.primary-toolbar .button:insensitive {
    border-width: 1px;
}

.primary-toolbar GtkComboBox.combobox-entry .button,
.primary-toolbar .raised .button,
.primary-toolbar .raised.button,
.primary-toolbar .button:hover {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (shade (@theme_selected_bg_color, 1.31), 1.04)),
                                     color-stop (0.49, shade (shade (@theme_selected_bg_color, 1.21), 1.04)),
                                     color-stop (0.50, shade (@theme_selected_bg_color, 1.21)),
                                     to (shade (@theme_selected_bg_color, 1.09)));
    border-color: shade (@theme_bg_color, 0.7);
}

.primary-toolbar .button:active {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (shade (@theme_bg_color, 0.98), 1.04)),
                                     color-stop (0.49, shade (shade (@theme_bg_color, 0.91), 1.04)),
                                     color-stop (0.50, shade (@theme_bg_color, 0.91)),
                                     to (shade (@theme_bg_color, 0.82)));
    border-color: shade (@theme_bg_color, 0.7);
}

.primary-toolbar .button:active:hover {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (shade (@theme_selected_bg_color, 1.31), 1.04)),
                                     color-stop (0.49, shade (shade (@theme_selected_bg_color, 1.21), 1.04)),
                                     color-stop (0.50, shade (@theme_selected_bg_color, 1.21)),
                                     to (shade (@theme_selected_bg_color, 1.09)));
}

.primary-toolbar .button:active:insensitive,
.primary-toolbar .button:insensitive {
    border-color: shade (@theme_bg_color, 0.8);
}

.primary-toolbar .button:insensitive {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (shade (@theme_bg_color, 1.09), 1.04)),
                                     color-stop (0.49, shade (shade (@theme_bg_color, 1.01), 1.04)),
                                     color-stop (0.50, shade (@theme_bg_color, 1.01)),
                                     to (shade (@theme_bg_color, 0.91)));
}

.primary-toolbar .button:active:insensitive {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (shade (@theme_bg_color, 0.98), 1.04)),
                                     color-stop (0.49, shade (shade (@theme_bg_color, 0.91), 1.04)),
                                     color-stop (0.50, shade (@theme_bg_color, 0.91)),
                                     to (shade (@theme_bg_color, 0.82)));
}

.primary-toolbar .entry,
.primary-toolbar .entry:active,
.primary-toolbar .entry:focus {
    border-radius: 2px;
}

.primary-toolbar GtkSeparatorToolItem,
.primary-toolbar .separator,
.primary-toolbar .separator:insensitive {
    border-color: alpha (shade (@theme_bg_color, 0.9), 0.5);
    border-style: solid;
}

/* inline-toolbar */
.inline-toolbar.toolbar {
    -GtkToolbar-button-relief: normal;

    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (@theme_bg_color, 0.93)),
                                     to (@theme_bg_color));
    border-radius: 0;
    border-style: solid;
    border-width: 1px;
    padding: 3px 4px 4px 4px;
}

.inline-toolbar.toolbar:last-child {
    border-bottom-color: shade (@theme_bg_color, 0.76);
    border-color: shade (@theme_bg_color, 0.7);
    border-radius: 0 0 2px 2px;
    border-width: 0 1px 1px 1px;
}

.inline-toolbar.toolbar .button {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (shade (@theme_bg_color, 1.09), 1.04)),
                                     color-stop (0.49, shade (shade (@theme_bg_color, 1.01), 1.04)),
                                     color-stop (0.50, shade (@theme_bg_color, 1.01)),
                                     to (shade (@theme_bg_color, 0.91)));
    border-radius: 0;
    border-style: solid;
    border-width: 1px 0 1px 1px;
    padding: 1px;
}

.inline-toolbar.toolbar .button *:insensitive,
.inline-toolbar.toolbar GtkToolButton .button:insensitive {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (shade (@theme_bg_color, 1.09), 1.04)),
                                     color-stop (0.49, shade (shade (@theme_bg_color, 1.01), 1.04)),
                                     color-stop (0.50, shade (@theme_bg_color, 1.01)),
                                     to (shade (@theme_bg_color, 0.91)));
    border-color: shade (@theme_bg_color, 0.8);
}

.inline-toolbar.toolbar .button:first-child,
.inline-toolbar.toolbar GtkToolButton:first-child .button {
    border-radius: 2px 0 0 2px;
}

.inline-toolbar.toolbar .button:last-child,
.inline-toolbar.toolbar GtkToolButton:last-child .button {
    border-radius: 0 2px 2px 0;
    border-width: 1px;
}

/***********
 * tooltip *
 ***********/
.tooltip {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (@theme_tooltip_bg_color, 1.09)),
                                     color-stop (0.50, shade (@theme_tooltip_bg_color, 1.01)),
                                     to (shade (@theme_tooltip_bg_color, 0.91)));
    border-color: shade (@theme_tooltip_bg_color, 0.7);
    border-radius: 2px;
    border-style: solid;
    border-width: 1px;

    color: @theme_tooltip_fg_color;
}

.tooltip * {
    background-color: transparent;
}

/************
 * treeview *
 ************/
GtkTreeView {
}

GtkTreeView.dnd {
    border-color: shade (@theme_selected_bg_color, 1.12);
    border-radius: 2px;
    border-width: 1px;
    border-style: solid;
}

GtkTreeView .entry {
    background-image: none;
    border-radius: 0;
}

GtkTreeView row:nth-child(even) {
    background-color:  mix (@theme_selected_bg_color, shade (@theme_base_color, 0.93), 0.98);
}

GtkTreeView row:nth-child(odd) {
    background-color: shade (@theme_base_color, 1.0);
}

/************
 * viewport *
 ************/
GtkViewport {
    background-color: transparent;
}

GtkViewport.frame {
    border-width: 0;
}

.view {
    background-color: @theme_base_color;
}

.view:selected,
.view:selected:focus {
    background-color: @theme_selected_bg_color;
    color: @theme_selected_fg_color;
}

Dernière modification par Compte anonymisé (Le 10/09/2013, à 23:06)

#2 Le 10/09/2013, à 18:27

tiramiseb

Re : [RESOLU]Corriger un gtk-widgets.css

Très facile.

L'erreur te dit de chercher autour de la ligne 210.

Si je regarde la ligne 210 de ton truc, je vois la chose suivante juste au-dessus :

/****************************************************************************************************************
*   background-image: -gtk-gradient (linear, left top, left bottom,   
*                                    from (shade (#383838, 0.70)),    /*** ESSAI DE DEGRADE  A VIRER AU CAS **/ *
*                                    to (shade (#7099C6, 0.50))); 
*****************************************************************************************************************/    

Le « A VIRER AU CAS **/ » termine le commentaire, du coup tu as plein de trucs que tu crois être des commentaires mais qui ne sont plus dedans...


Évite de mettre des commentaires dans des commentaires.
L'erreur de parsing est en réalité sur l'ouverture « /*** ESSAI », ainsi qu'en ligne environ 1049 : « /* JOUER ICI ».

Dernière modification par tiramiseb (Le 10/09/2013, à 18:29)

Hors ligne