<commit_before>/*
 * ekn-media-bin.css
 *
 * Copyright (C) 2016 Endless Mobile, Inc.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 *
 * Author: <NAME> <<EMAIL>>
 *
 */

@define-color transparent-light rgba (1,1,1,.1);
@define-color transparent-dark  rgba (.11,.11,.11,.8);
@define-color highlight-color   #ff6835;
@define-color audio-bg-color    #4c4c4c;

/* hiden/shown  */
ekn-media-bin *.hide {
  transition: opacity .32s;
  opacity: 0;
}

ekn-media-bin *.show {
  transition: opacity .32s;
  opacity: 1;
}

ekn-media-bin > stack > image {
  background: black;
}

ekn-media-bin label,
ekn-media-bin scale value {
  color: white;
}

ekn-media-bin label:backdrop,
ekn-media-bin scale value:backdrop {
  color: darker(white);
}

ekn-media-bin box.overlay-bar {
  background: @transparent-dark;
}

ekn-media-bin box.overlay-bar.top {
  padding: 12px;
}

ekn-media-bin label.title {
  font: 18px Sans;
}

ekn-media-bin box.bottom button {
  border: 0px;
  border-radius: 0px;
  box-shadow: none;
  outline: 0px;
  background: none;
  padding: 8px;
}

ekn-media-bin box.bottom button:hover {
  box-shadow: none;
  background: rgba (0,0,0,.6);
}

/* Main play button */
ekn-media-bin overlay > box {
  font-size: 18px;
  border: 0px;
  border-radius: 2em;
  padding: .7em 1em;
  box-shadow: none;
  background: @transparent-dark;
}

ekn-media-bin overlay > box > label {
  padding-left: .64em;
}

/* Style media playback scale */
ekn-media-bin scale {
  margin-top: .5em;
  padding: 3px 0px;
  background-image: linear-gradient(to top, @transparent-dark 3px, transparent 3px);
}

ekn-media-bin scale trough {
  border: 0;
  border-radius: 0px;
  padding: 1px;
  background: @transparent-light;
}

ekn-media-bin scale slider {
  min-height: 12px;
  min-width: 12px;
  margin: -4px;
  border: 0px;
  border-radius: 6px;
  box-shadow: none;
  background: none;
}

ekn-media-bin scale highlight {
  border: 0px;
  padding: 0px;
  border-radius: 0px 4px 4px 0px;
  background: @highlight-color;
}

ekn-media-bin scale value {
  padding: 2px 0px;
  border-radius: 1em;
  background: @transparent-dark;
}

ekn-media-bin scale:hover slider {
  background: white;
}

/* Volume popover */
popover.ekn-media-bin {
  border: 0px;
  border-radius: 0px;
  box-shadow: none;
  background: none;
}

popover.ekn-media-bin scale {
  border-radius: 18px;
  padding: 6px;
  background: @transparent-dark;
}

popover.ekn-media-bin scale trough {
  outline: 0px;
  border: 0px;
  border-radius: 3px;
  padding: 1px;
  background: @transparent-light;
}

popover.ekn-media-bin scale highlight {
  border: 0px;
  padding: 0px;
  border-radius: 4px;
  background: @highlight-color;
}

popover.ekn-media-bin scale slider {
  min-height: 12px;
  min-width: 12px;
  margin: -3px;
  border: 0px;
  border-radius: 6px;
  box-shadow: none;
  background: none;
}

popover.ekn-media-bin scale:hover slider {
  background: white;
}

/* Audio nodes */
ekn-media-bin box.audio > box {
  background: @audio-bg-color;
}

ekn-media-bin box.audio > scale {
  margin: 0;
  padding: 1px 0px;
  background-image: linear-gradient(to top, @audio-bg-color 3px, transparent 3px);
}

ekn-media-bin box.audio > scale trough {
  padding: 1px 0px;
  background: #707070;
}

/* Setup key bindings */
@binding-set emb-binding-set {
  bind "space"     { "toggle" ("playback") };
  bind "f"         { "toggle" ("fullscreen") };
  bind "i"         { "toggle" ("show-stream-info") };
  bind "Right"     { "seek" (5) };
  bind "Left"      { "seek" (-5) };
  bind "Up"        { "seek" (60) };
  bind "Down"      { "seek" (-60) };
  bind "Page_Up"   { "seek" (300) };
  bind "Page_Down" { "seek" (-300) };
  bind "Home"      { "seek" (0) };
}

@binding-set emb-fullscreen-binding-set {
  bind "Escape" { "toggle" ("fullscreen") };
}

ekn-media-bin {
  -gtk-key-bindings: emb-binding-set;
}

ekn-media-bin.fullscreen {
  -gtk-key-bindings: emb-binding-set, emb-fullscreen-binding-set;
}
<commit_msg>EknMediaBin: set background color to black.<commit_after>/*
 * ekn-media-bin.css
 *
 * Copyright (C) 2016 Endless Mobile, Inc.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 *
 * Author: <NAME> <<EMAIL>>
 *
 */

@define-color transparent-light rgba (1,1,1,.1);
@define-color transparent-dark  rgba (.11,.11,.11,.8);
@define-color highlight-color   #ff6835;
@define-color audio-bg-color    #4c4c4c;

/* hiden/shown  */
ekn-media-bin *.hide {
  transition: opacity .32s;
  opacity: 0;
}

ekn-media-bin *.show {
  transition: opacity .32s;
  opacity: 1;
}

ekn-media-bin {
  background: black;
}

ekn-media-bin label,
ekn-media-bin scale value {
  color: white;
}

ekn-media-bin label:backdrop,
ekn-media-bin scale value:backdrop {
  color: darker(white);
}

ekn-media-bin box.overlay-bar {
  background: @transparent-dark;
}

ekn-media-bin box.overlay-bar.top {
  padding: 12px;
}

ekn-media-bin label.title {
  font: 18px Sans;
}

ekn-media-bin box.bottom button {
  border: 0px;
  border-radius: 0px;
  box-shadow: none;
  outline: 0px;
  background: none;
  padding: 8px;
}

ekn-media-bin box.bottom button:hover {
  box-shadow: none;
  background: rgba (0,0,0,.6);
}

/* Main play button */
ekn-media-bin overlay > box {
  font-size: 18px;
  border: 0px;
  border-radius: 2em;
  padding: .7em 1em;
  box-shadow: none;
  background: @transparent-dark;
}

ekn-media-bin overlay > box > label {
  padding-left: .64em;
}

/* Style media playback scale */
ekn-media-bin scale {
  margin-top: .5em;
  padding: 3px 0px;
  background-image: linear-gradient(to top, @transparent-dark 3px, transparent 3px);
}

ekn-media-bin scale trough {
  border: 0;
  border-radius: 0px;
  padding: 1px;
  background: @transparent-light;
}

ekn-media-bin scale slider {
  min-height: 12px;
  min-width: 12px;
  margin: -4px;
  border: 0px;
  border-radius: 6px;
  box-shadow: none;
  background: none;
}

ekn-media-bin scale highlight {
  border: 0px;
  padding: 0px;
  border-radius: 0px 4px 4px 0px;
  background: @highlight-color;
}

ekn-media-bin scale value {
  padding: 2px 0px;
  border-radius: 1em;
  background: @transparent-dark;
}

ekn-media-bin scale:hover slider {
  background: white;
}

/* Volume popover */
popover.ekn-media-bin {
  border: 0px;
  border-radius: 0px;
  box-shadow: none;
  background: none;
}

popover.ekn-media-bin scale {
  border-radius: 18px;
  padding: 6px;
  background: @transparent-dark;
}

popover.ekn-media-bin scale trough {
  outline: 0px;
  border: 0px;
  border-radius: 3px;
  padding: 1px;
  background: @transparent-light;
}

popover.ekn-media-bin scale highlight {
  border: 0px;
  padding: 0px;
  border-radius: 4px;
  background: @highlight-color;
}

popover.ekn-media-bin scale slider {
  min-height: 12px;
  min-width: 12px;
  margin: -3px;
  border: 0px;
  border-radius: 6px;
  box-shadow: none;
  background: none;
}

popover.ekn-media-bin scale:hover slider {
  background: white;
}

/* Audio nodes */
ekn-media-bin box.audio > box {
  background: @audio-bg-color;
}

ekn-media-bin box.audio > scale {
  margin: 0;
  padding: 1px 0px;
  background-image: linear-gradient(to top, @audio-bg-color 3px, transparent 3px);
}

ekn-media-bin box.audio > scale trough {
  padding: 1px 0px;
  background: #707070;
}

/* Setup key bindings */
@binding-set emb-binding-set {
  bind "space"     { "toggle" ("playback") };
  bind "f"         { "toggle" ("fullscreen") };
  bind "i"         { "toggle" ("show-stream-info") };
  bind "Right"     { "seek" (5) };
  bind "Left"      { "seek" (-5) };
  bind "Up"        { "seek" (60) };
  bind "Down"      { "seek" (-60) };
  bind "Page_Up"   { "seek" (300) };
  bind "Page_Down" { "seek" (-300) };
  bind "Home"      { "seek" (0) };
}

@binding-set emb-fullscreen-binding-set {
  bind "Escape" { "toggle" ("fullscreen") };
}

ekn-media-bin {
  -gtk-key-bindings: emb-binding-set;
}

ekn-media-bin.fullscreen {
  -gtk-key-bindings: emb-binding-set, emb-fullscreen-binding-set;
}

{'fraction_non_alphanumeric': 0.14030172413793104, 'fraction_numerical': 0.028017241379310345, 'mean_word_length': 3.298749421028254, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5989100', 'n_tokens_mistral': 3642, 'n_tokens_neox': 3403, 'n_words': 933}