summaryrefslogtreecommitdiff
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2014-04-02 12:19:56 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2014-04-02 12:19:56 +0200
commitbf7baf9387389b0769dd8eba4d8d49704845a390 (patch)
tree748a7953029de5da8d56ef9937f295742bff59ba
parentd4ce402df4d7b6b71a98946b3dfd054f271e13d8 (diff)
DecorationsForceQuitDialog: use themed button textures
(bzr r3740.4.13)
-rw-r--r--decorations/DecorationsForceQuitDialog.cpp17
-rw-r--r--resources/style_sheet_close_focused.svg177
-rw-r--r--resources/style_sheet_close_focused_prelight.svg177
-rw-r--r--resources/style_sheet_close_focused_pressed.svg168
4 files changed, 532 insertions, 7 deletions
diff --git a/decorations/DecorationsForceQuitDialog.cpp b/decorations/DecorationsForceQuitDialog.cpp
index 7bf68a9f4..005d2b905 100644
--- a/decorations/DecorationsForceQuitDialog.cpp
+++ b/decorations/DecorationsForceQuitDialog.cpp
@@ -37,9 +37,9 @@ namespace
{
DECLARE_LOGGER(logger, "unity.decoration.forcequit.dialog");
-const gchar* CLOSE_BUTTON_INACTIVE_FILE = "/usr/share/themes/Radiance/unity/close_focused.svg";
-const gchar* CLOSE_BUTTON_FOCUSED_FILE = "/usr/share/themes/Radiance/unity/close_focused_prelight.svg";
-const gchar* CLOSE_BUTTON_ACTIVE_FILE = "/usr/share/themes/Radiance/unity/close_focused_pressed.svg";
+const std::string CLOSE_BUTTON_INACTIVE_FILE = "style_sheet_close_focused";
+const std::string CLOSE_BUTTON_FOCUSED_FILE = "style_sheet_close_focused_prelight";
+const std::string CLOSE_BUTTON_ACTIVE_FILE = "style_sheet_close_focused_pressed";
// Dialog
@@ -300,7 +300,8 @@ GtkWidget* close_button_new()
gtk_widget_set_can_focus(self, FALSE);
gtk_widget_set_halign(self, GTK_ALIGN_START);
- auto* img = gtk_image_new_from_file(CLOSE_BUTTON_INACTIVE_FILE);
+ auto const& file = decoration::Style::Get()->ThemedFilePath(CLOSE_BUTTON_INACTIVE_FILE, {PKGDATADIR"/"});
+ auto* img = gtk_image_new_from_file(file.c_str());
gtk_container_add(GTK_CONTAINER(self), img);
CLOSE_BUTTON_GET_PRIVATE(self)->img = GTK_IMAGE(img);
@@ -329,15 +330,17 @@ static void close_button_class_init(CloseButtonClass* klass)
GTK_WIDGET_CLASS(klass)->state_flags_changed = [] (GtkWidget* self, GtkStateFlags prev_state) {
auto new_flags = gtk_widget_get_state_flags(self);
- const gchar* file = CLOSE_BUTTON_INACTIVE_FILE;
+ auto const& deco_style = decoration::Style::Get();
+ auto file = deco_style->ThemedFilePath(CLOSE_BUTTON_INACTIVE_FILE, {PKGDATADIR"/"});
if (((new_flags & GTK_STATE_FLAG_PRELIGHT) && !gtk_widget_get_can_focus(self)) ||
(new_flags & GTK_STATE_FLAG_FOCUSED))
{
- file = (new_flags & GTK_STATE_FLAG_ACTIVE) ? CLOSE_BUTTON_ACTIVE_FILE : CLOSE_BUTTON_FOCUSED_FILE;
+ auto const& basename = (new_flags & GTK_STATE_FLAG_ACTIVE) ? CLOSE_BUTTON_ACTIVE_FILE : CLOSE_BUTTON_FOCUSED_FILE;
+ file = deco_style->ThemedFilePath(basename, {PKGDATADIR"/"});
}
- gtk_image_set_from_file(CLOSE_BUTTON_GET_PRIVATE(self)->img, file);
+ gtk_image_set_from_file(CLOSE_BUTTON_GET_PRIVATE(self)->img, file.c_str());
return GTK_WIDGET_CLASS(close_button_parent_class)->state_flags_changed(self, prev_state);
};
diff --git a/resources/style_sheet_close_focused.svg b/resources/style_sheet_close_focused.svg
new file mode 100644
index 000000000..c4ddf346a
--- /dev/null
+++ b/resources/style_sheet_close_focused.svg
@@ -0,0 +1,177 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="19"
+ height="19"
+ id="svg4747"
+ version="1.1"
+ inkscape:version="0.48+devel r"
+ viewBox="0 0 19 19"
+ sodipodi:docname="close_focused_normal.svg">
+ <defs
+ id="defs4749">
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient4509"
+ id="linearGradient4787"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="translate(-1072.3622,-1053.3622)"
+ x1="2.0000153"
+ y1="1062.8622"
+ x2="16.999975"
+ y2="1062.8622" />
+ <linearGradient
+ inkscape:collect="always"
+ id="linearGradient4509">
+ <stop
+ style="stop-color:#e77041;stop-opacity:1"
+ offset="0"
+ id="stop4885" />
+ <stop
+ id="stop4887"
+ offset="0.50001228"
+ style="stop-color:#f17d4e;stop-opacity:1" />
+ <stop
+ style="stop-color:#f9b39c;stop-opacity:1"
+ offset="1"
+ id="stop4889" />
+ </linearGradient>
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient4521"
+ id="linearGradient4789"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="translate(2125.7244,0)"
+ x1="-1065.3622"
+ y1="9.4999952"
+ x2="-1055.3622"
+ y2="9.4999952" />
+ <linearGradient
+ id="linearGradient4521"
+ inkscape:collect="always">
+ <stop
+ id="stop4293"
+ offset="0"
+ style="stop-color:#ffffff;stop-opacity:1;" />
+ <stop
+ id="stop4295"
+ offset="1"
+ style="stop-color:#ffffff;stop-opacity:0;" />
+ </linearGradient>
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient4521"
+ id="linearGradient4791"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(1.0357118,0,0,1.0357118,2163.6811,-0.33926172)"
+ x1="-1065.276"
+ y1="9.4999952"
+ x2="-1055.6208"
+ y2="9.4999952" />
+ </defs>
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="15.543122"
+ inkscape:cx="1.5415261"
+ inkscape:cy="18.71954"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ fit-margin-top="0"
+ fit-margin-left="0"
+ fit-margin-right="0"
+ fit-margin-bottom="0" />
+ <metadata
+ id="metadata4752">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(295.60105,-849.03082)">
+ <g
+ style="display:inline"
+ id="g4775"
+ inkscape:export-filename="close.png"
+ inkscape:export-xdpi="90"
+ inkscape:export-ydpi="90"
+ transform="translate(-295.60104,-204.33136)">
+ <circle
+ r="8.5"
+ cy="1062.8622"
+ cx="9.4999924"
+ id="circle4777"
+ style="color:#000000;fill:#d0c7bf;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:8;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ d="m 17.999992,1062.8622 a 8.5,8.5 0 0 1 -8.4999996,8.5 8.5,8.5 0 0 1 -8.50000003,-8.5 8.5,8.5 0 0 1 8.50000003,-8.5 8.5,8.5 0 0 1 8.4999996,8.5 z" />
+ <circle
+ transform="matrix(0,-1,1,0,0,0)"
+ style="color:#000000;fill:url(#linearGradient4787);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:8;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ id="circle4779"
+ cx="-1062.8622"
+ cy="9.4999952"
+ r="7.49998"
+ d="m -1055.3622,9.4999952 a 7.49998,7.49998 0 0 1 -7.5,7.4999798 7.49998,7.49998 0 0 1 -7.5,-7.4999798 7.49998,7.49998 0 0 1 7.5,-7.4999799 7.49998,7.49998 0 0 1 7.5,7.4999799 z" />
+ <circle
+ r="6.9999976"
+ cy="9.4999952"
+ cx="1062.8622"
+ id="circle4781"
+ style="opacity:0.25;color:#000000;fill:none;stroke:url(#linearGradient4789);stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ transform="matrix(0,1,1,0,0,0)"
+ d="m 1069.8622,9.4999952 a 6.9999976,6.9999976 0 0 1 -7,6.9999978 6.9999976,6.9999976 0 0 1 -7,-6.9999978 6.9999976,6.9999976 0 0 1 7,-6.9999976 6.9999976,6.9999976 0 0 1 7,6.9999976 z" />
+ <circle
+ transform="matrix(0,1,1,0,0,0)"
+ style="opacity:0.25;color:#000000;fill:none;stroke:url(#linearGradient4791);stroke-width:0.5;stroke-miterlimit:4;stroke-dasharray:none;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ id="circle4783"
+ cx="1062.8622"
+ cy="9.4999952"
+ r="7.24998"
+ d="m 1070.1122,9.4999952 a 7.24998,7.24998 0 0 1 -7.25,7.2499798 7.24998,7.24998 0 0 1 -7.25,-7.2499798 7.24998,7.24998 0 0 1 7.25,-7.2499799 7.24998,7.24998 0 0 1 7.25,7.2499799 z" />
+ <rect
+ y="1053.3622"
+ x="-7.3563765e-06"
+ height="19"
+ width="19"
+ id="rect4785"
+ style="color:#000000;fill:none;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" />
+ </g>
+ <path
+ style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;opacity:0.25;color:#000000;color-interpolation:sRGB;color-interpolation-filters:linearRGB;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;isolation:auto;mix-blend-mode:normal;enable-background:accumulate;clip-rule:nonzero;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;font-family:sans-serif;-inkscape-font-specification:sans-serif"
+ d="m -288.40183,856.52418 -0.70703,0.707 0.35351,0.3535 1.94727,1.9473 -1.94727,1.9453 -0.35351,0.3535 0.70703,0.707 0.35351,-0.3535 1.94727,-1.9472 1.94726,1.9472 0.35352,0.3535 0.70703,-0.707 -0.35351,-0.3535 -1.94727,-1.9453 1.94727,-1.9473 0.35351,-0.3535 -0.70703,-0.707 -0.35352,0.3535 -1.94726,1.9472 -1.94727,-1.9472 -0.35351,-0.3535 z"
+ id="path4646"
+ inkscape:connector-curvature="0" />
+ <path
+ style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;color-interpolation:sRGB;color-interpolation-filters:linearRGB;fill:#7f4025;fill-opacity:1;stroke:none;stroke-width:1.10000002;marker:none;visibility:visible;display:inline;overflow:visible;isolation:auto;mix-blend-mode:normal;enable-background:accumulate;clip-rule:nonzero;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;font-family:sans-serif;-inkscape-font-specification:sans-serif"
+ d="m -283.80078,855.45312 -0.38867,0.38868 -4.59961,4.59961 -0.39063,0.38867 0.7793,0.7793 0.38867,-0.38868 4.59961,-4.60156 0.38867,-0.38867 -0.77734,-0.77735 z"
+ id="path4535"
+ inkscape:connector-curvature="0" />
+ <path
+ style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;color-interpolation:sRGB;color-interpolation-filters:linearRGB;fill:#7f4025;fill-opacity:1;stroke:none;stroke-width:1.10000002;marker:none;visibility:visible;display:inline;overflow:visible;isolation:auto;mix-blend-mode:normal;enable-background:accumulate;clip-rule:nonzero;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;font-family:sans-serif;-inkscape-font-specification:sans-serif"
+ d="m -288.40039,855.45312 -0.7793,0.77735 0.39063,0.38867 4.59961,4.60156 0.38867,0.38868 0.77734,-0.7793 -0.38867,-0.38867 -4.59961,-4.59961 -0.38867,-0.38868 z"
+ id="path4537"
+ inkscape:connector-curvature="0" />
+ </g>
+</svg>
diff --git a/resources/style_sheet_close_focused_prelight.svg b/resources/style_sheet_close_focused_prelight.svg
new file mode 100644
index 000000000..9a0cd86d4
--- /dev/null
+++ b/resources/style_sheet_close_focused_prelight.svg
@@ -0,0 +1,177 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="19"
+ height="19"
+ id="svg4747"
+ version="1.1"
+ inkscape:version="0.48+devel r"
+ viewBox="0 0 19 19"
+ sodipodi:docname="close_focused_prelight.svg">
+ <defs
+ id="defs4749">
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient4891"
+ id="linearGradient4877"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="translate(-1072.3622,-1053.3622)"
+ x1="2.0000153"
+ y1="1062.8622"
+ x2="16.999975"
+ y2="1062.8622" />
+ <linearGradient
+ id="linearGradient4891"
+ inkscape:collect="always">
+ <stop
+ id="stop4767"
+ offset="0"
+ style="stop-color:#e67144;stop-opacity:1" />
+ <stop
+ style="stop-color:#ed8b67;stop-opacity:1"
+ offset="0.50001228"
+ id="stop4769" />
+ <stop
+ id="stop4771"
+ offset="1"
+ style="stop-color:#f9cbbd;stop-opacity:1" />
+ </linearGradient>
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient4521"
+ id="linearGradient4879"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="translate(2125.7244,0)"
+ x1="-1065.3622"
+ y1="9.4999952"
+ x2="-1055.3622"
+ y2="9.4999952" />
+ <linearGradient
+ id="linearGradient4521"
+ inkscape:collect="always">
+ <stop
+ id="stop4293"
+ offset="0"
+ style="stop-color:#ffffff;stop-opacity:1;" />
+ <stop
+ id="stop4295"
+ offset="1"
+ style="stop-color:#ffffff;stop-opacity:0;" />
+ </linearGradient>
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient4521"
+ id="linearGradient4881"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(1.0357118,0,0,1.0357118,2163.6811,-0.33926172)"
+ x1="-1065.276"
+ y1="9.4999952"
+ x2="-1055.6208"
+ y2="9.4999952" />
+ </defs>
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="0.35"
+ inkscape:cx="-276"
+ inkscape:cy="139"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ fit-margin-top="0"
+ fit-margin-left="0"
+ fit-margin-right="0"
+ fit-margin-bottom="0" />
+ <metadata
+ id="metadata4752">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(4.7142929,-652.36219)">
+ <g
+ style="display:inline"
+ transform="translate(-4.7142855,-400.99999)"
+ inkscape:export-ydpi="90"
+ inkscape:export-xdpi="90"
+ inkscape:export-filename="close.png"
+ id="g4865">
+ <circle
+ style="color:#000000;fill:#d0c7bf;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:8;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ id="circle4867"
+ cx="9.4999924"
+ cy="1062.8622"
+ r="8.5"
+ d="m 17.999992,1062.8622 a 8.5,8.5 0 0 1 -8.4999996,8.5 8.5,8.5 0 0 1 -8.50000003,-8.5 8.5,8.5 0 0 1 8.50000003,-8.5 8.5,8.5 0 0 1 8.4999996,8.5 z" />
+ <circle
+ r="7.49998"
+ cy="9.4999952"
+ cx="-1062.8622"
+ id="circle4869"
+ style="color:#000000;fill:url(#linearGradient4877);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:8;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ transform="matrix(0,-1,1,0,0,0)"
+ d="m -1055.3622,9.4999952 a 7.49998,7.49998 0 0 1 -7.5,7.4999798 7.49998,7.49998 0 0 1 -7.5,-7.4999798 7.49998,7.49998 0 0 1 7.5,-7.4999799 7.49998,7.49998 0 0 1 7.5,7.4999799 z" />
+ <circle
+ transform="matrix(0,1,1,0,0,0)"
+ style="opacity:0.25;color:#000000;fill:none;stroke:url(#linearGradient4879);stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ id="circle4871"
+ cx="1062.8622"
+ cy="9.4999952"
+ r="6.9999976"
+ d="m 1069.8622,9.4999952 a 6.9999976,6.9999976 0 0 1 -7,6.9999978 6.9999976,6.9999976 0 0 1 -7,-6.9999978 6.9999976,6.9999976 0 0 1 7,-6.9999976 6.9999976,6.9999976 0 0 1 7,6.9999976 z" />
+ <circle
+ r="7.24998"
+ cy="9.4999952"
+ cx="1062.8622"
+ id="circle4873"
+ style="opacity:0.25;color:#000000;fill:none;stroke:url(#linearGradient4881);stroke-width:0.5;stroke-miterlimit:4;stroke-dasharray:none;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ transform="matrix(0,1,1,0,0,0)"
+ d="m 1070.1122,9.4999952 a 7.24998,7.24998 0 0 1 -7.25,7.2499798 7.24998,7.24998 0 0 1 -7.25,-7.2499798 7.24998,7.24998 0 0 1 7.25,-7.2499799 7.24998,7.24998 0 0 1 7.25,7.2499799 z" />
+ <rect
+ style="color:#000000;fill:none;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ id="rect4875"
+ width="19"
+ height="19"
+ x="-7.3563765e-06"
+ y="1053.3622" />
+ </g>
+ <path
+ inkscape:connector-curvature="0"
+ id="path4893"
+ d="m 2.4849245,659.85555 -0.70703,0.707 0.35351,0.3535 1.94727,1.9473 -1.94727,1.9453 -0.35351,0.3535 0.70703,0.707 0.35351,-0.3535 1.94727,-1.9472 1.94726,1.9472 0.35352,0.3535 0.70703,-0.707 -0.35351,-0.3535 -1.94727,-1.9453 1.94727,-1.9473 0.35351,-0.3535 -0.70703,-0.707 -0.35352,0.3535 -1.94726,1.9472 -1.94727,-1.9472 -0.35351,-0.3535 z"
+ style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;opacity:0.25;color:#000000;color-interpolation:sRGB;color-interpolation-filters:linearRGB;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;isolation:auto;mix-blend-mode:normal;enable-background:accumulate;clip-rule:nonzero;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;font-family:sans-serif;-inkscape-font-specification:sans-serif" />
+ <path
+ style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;color-interpolation:sRGB;color-interpolation-filters:linearRGB;fill:#7f4025;fill-opacity:1;stroke:none;stroke-width:1.10000002;marker:none;visibility:visible;display:inline;overflow:visible;isolation:auto;mix-blend-mode:normal;enable-background:accumulate;clip-rule:nonzero;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;font-family:sans-serif;-inkscape-font-specification:sans-serif"
+ d="m 7.0864845,658.78515 -0.39063,0.3886 -4.5996,4.5996 -0.38868,0.3887 0.77735,0.7774 0.39062,-0.3887 4.59961,-4.5996 0.38867,-0.3887 -0.77734,-0.7773 z"
+ id="path4895"
+ inkscape:connector-curvature="0" />
+ <path
+ style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;color-interpolation:sRGB;color-interpolation-filters:linearRGB;fill:#7f4025;fill-opacity:1;stroke:none;stroke-width:1.10000002;marker:none;visibility:visible;display:inline;overflow:visible;isolation:auto;mix-blend-mode:normal;enable-background:accumulate;clip-rule:nonzero;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;font-family:sans-serif;-inkscape-font-specification:sans-serif"
+ d="m 2.4849245,658.78515 -0.77735,0.7773 0.38868,0.3887 4.5996,4.5996 0.39063,0.3887 0.77734,-0.7774 -0.38867,-0.3887 -4.59961,-4.5996 -0.39062,-0.3886 z"
+ id="path4897"
+ inkscape:connector-curvature="0" />
+ </g>
+</svg>
diff --git a/resources/style_sheet_close_focused_pressed.svg b/resources/style_sheet_close_focused_pressed.svg
new file mode 100644
index 000000000..6ea2e6d52
--- /dev/null
+++ b/resources/style_sheet_close_focused_pressed.svg
@@ -0,0 +1,168 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="19"
+ height="19"
+ id="svg4747"
+ version="1.1"
+ inkscape:version="0.48+devel r"
+ viewBox="0 0 19 19"
+ sodipodi:docname="close_focused_pressed.svg">
+ <defs
+ id="defs4749">
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient4564"
+ id="linearGradient4552"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="translate(-1072.3622,-1053.3622)"
+ x1="2.0000153"
+ y1="1062.8622"
+ x2="16.999975"
+ y2="1062.8622" />
+ <linearGradient
+ inkscape:collect="always"
+ id="linearGradient4564">
+ <stop
+ style="stop-color:#f08054;stop-opacity:1"
+ offset="0"
+ id="stop4511" />
+ <stop
+ style="stop-color:#f07c4e;stop-opacity:1"
+ offset="1"
+ id="stop4513" />
+ </linearGradient>
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient4297"
+ id="linearGradient4554"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="translate(3.4765625e-5,0)"
+ x1="-1070.3622"
+ y1="8.9999962"
+ x2="-1055.3622"
+ y2="8.9999962" />
+ <linearGradient
+ inkscape:collect="always"
+ id="linearGradient4297">
+ <stop
+ style="stop-color:#ffffff;stop-opacity:1;"
+ offset="0"
+ id="stop4523" />
+ <stop
+ style="stop-color:#bd9e82;stop-opacity:1"
+ offset="1"
+ id="stop4525" />
+ </linearGradient>
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient4297"
+ id="linearGradient4556"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(1.0357118,0,0,1.0357118,37.956735,-0.33926172)"
+ x1="-1070.1036"
+ y1="9.4999952"
+ x2="-1055.6208"
+ y2="9.4999952" />
+ </defs>
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="0.35"
+ inkscape:cx="130.64286"
+ inkscape:cy="454.21428"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ fit-margin-top="0"
+ fit-margin-left="0"
+ fit-margin-right="0"
+ fit-margin-bottom="0" />
+ <metadata
+ id="metadata4752">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(411.35715,-967.57648)">
+ <g
+ style="display:inline"
+ transform="translate(-411.35714,-85.785707)"
+ inkscape:export-ydpi="90"
+ inkscape:export-xdpi="90"
+ inkscape:export-filename="maximize.png"
+ id="g4540">
+ <circle
+ style="color:#000000;fill:#d0c7bf;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:8;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ id="circle4542"
+ cx="9.4999924"
+ cy="1062.8622"
+ r="8.5"
+ d="m 17.999992,1062.8622 a 8.5,8.5 0 0 1 -8.4999996,8.5 8.5,8.5 0 0 1 -8.50000003,-8.5 8.5,8.5 0 0 1 8.50000003,-8.5 8.5,8.5 0 0 1 8.4999996,8.5 z" />
+ <circle
+ r="7.49998"
+ cy="9.4999952"
+ cx="-1062.8622"
+ id="circle4544"
+ style="color:#000000;fill:url(#linearGradient4552);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:8;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ transform="matrix(0,-1,1,0,0,0)"
+ d="m -1055.3622,9.4999952 a 7.49998,7.49998 0 0 1 -7.5,7.4999798 7.49998,7.49998 0 0 1 -7.5,-7.4999798 7.49998,7.49998 0 0 1 7.5,-7.4999799 7.49998,7.49998 0 0 1 7.5,7.4999799 z" />
+ <circle
+ transform="matrix(0,-1,1,0,0,0)"
+ style="opacity:0.05;color:#000000;fill:none;stroke:url(#linearGradient4554);stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ id="circle4546"
+ cx="-1062.8622"
+ cy="9.4999952"
+ r="6.9999976"
+ d="m -1055.8622,9.4999952 a 6.9999976,6.9999976 0 0 1 -7,6.9999978 6.9999976,6.9999976 0 0 1 -7,-6.9999978 6.9999976,6.9999976 0 0 1 7,-6.9999976 6.9999976,6.9999976 0 0 1 7,6.9999976 z" />
+ <circle
+ r="7.24998"
+ cy="9.4999952"
+ cx="-1062.8622"
+ id="circle4548"
+ style="opacity:0.05;color:#000000;fill:none;stroke:url(#linearGradient4556);stroke-width:0.5;stroke-miterlimit:4;stroke-dasharray:none;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ transform="matrix(0,-1,1,0,0,0)"
+ d="m -1055.6122,9.4999952 a 7.24998,7.24998 0 0 1 -7.25,7.2499798 7.24998,7.24998 0 0 1 -7.25,-7.2499798 7.24998,7.24998 0 0 1 7.25,-7.2499799 7.24998,7.24998 0 0 1 7.25,7.2499799 z" />
+ <rect
+ style="color:#000000;fill:none;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ id="rect4550"
+ width="19"
+ height="19"
+ x="-7.3563765e-06"
+ y="1053.3622" />
+ </g>
+ <path
+ style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;color-interpolation:sRGB;color-interpolation-filters:linearRGB;fill:#7f4025;fill-opacity:1;stroke:none;stroke-width:1.10000002;marker:none;visibility:visible;display:inline;overflow:visible;isolation:auto;mix-blend-mode:normal;enable-background:accumulate;clip-rule:nonzero;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;font-family:sans-serif;-inkscape-font-specification:sans-serif"
+ d="m -399.55637,973.99943 -0.39063,0.3886 -4.5996,4.5996 -0.38868,0.3887 0.77735,0.7774 0.39062,-0.3887 4.59961,-4.5996 0.38867,-0.3887 -0.77734,-0.7773 z"
+ id="path4989"
+ inkscape:connector-curvature="0" />
+ <path
+ style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;color-interpolation:sRGB;color-interpolation-filters:linearRGB;fill:#7f4025;fill-opacity:1;stroke:none;stroke-width:1.10000002;marker:none;visibility:visible;display:inline;overflow:visible;isolation:auto;mix-blend-mode:normal;enable-background:accumulate;clip-rule:nonzero;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;font-family:sans-serif;-inkscape-font-specification:sans-serif"
+ d="m -404.15793,973.99943 -0.77735,0.7773 0.38868,0.3887 4.5996,4.5996 0.39063,0.3887 0.77734,-0.7774 -0.38867,-0.3887 -4.59961,-4.5996 -0.39062,-0.3886 z"
+ id="path4991"
+ inkscape:connector-curvature="0" />
+ </g>
+</svg>