Commit b55f31e9 authored by Felix Häcker's avatar Felix Häcker

Add app icon; Small improvements

parent 8a69888e
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
height="16"
id="svg7384"
version="1.1"
width="16"
sodipodi:docname="de.haeckerfelix.Remotely-symbolic.svg"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1016"
id="namedview9"
showgrid="true"
inkscape:zoom="10.429825"
inkscape:cx="7.7685165"
inkscape:cy="8.0214018"
inkscape:window-x="0"
inkscape:window-y="27"
inkscape:window-maximized="1"
inkscape:current-layer="svg7384"
inkscape:object-paths="true"
inkscape:snap-intersection-paths="true"
inkscape:snap-smooth-nodes="true">
<inkscape:grid
type="xygrid"
id="grid829" />
</sodipodi:namedview>
<metadata
id="metadata90">
<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>Gnome Symbolic Icon Theme</dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<title
id="title9167">Gnome Symbolic Icon Theme</title>
<defs
id="defs7386" />
<path
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#241f31;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:new"
d="m 8,2 h 1 c 2.773268,0 5,2.2267317 5,5 v 1 l 2,0 V 7 C 16,3.1458515 12.854149,0 9,0 L 8,0 Z"
id="path1525"
inkscape:connector-curvature="0" />
<path
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#241f31;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:new"
d="m 8,6 h 1 c 0.5641294,0 1,0.4358706 1,1 v 1 h 2 V 7 C 12,5.3549904 10.64501,4 9,4 H 8 Z"
id="path1529"
inkscape:connector-curvature="0" />
<path
style="display:inline;opacity:1;vector-effect:none;fill:#241f31;fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0;enable-background:new"
d="m 5.9511719,6.2207031 c -0.2556191,0 -0.5111627,0.0971 -0.7070313,0.2929688 L 0.29296875,11.462891 c -0.39173716,0.391737 -0.39173716,1.022325 0,1.414062 l 2.83007815,2.830078 c 0.3917371,0.391737 1.0223253,0.391737 1.4140625,0 l 4.9492187,-4.951172 c 0.3917372,-0.391737 0.3917372,-1.022325 0,-1.4140621 L 6.6582031,6.5136719 C 6.4623345,6.3178033 6.206791,6.2207031 5.9511719,6.2207031 Z M 6,8 C 6.5522847,8 7,8.4477153 7,9 7,9.5522847 6.5522847,10 6,10 5.4477153,10 5,9.5522847 5,9 5,8.4477153 5.4477153,8 6,8 Z"
id="rect1531"
inkscape:connector-curvature="0"
sodipodi:nodetypes="sccssccssssssss" />
</svg>
scalable_dir = join_paths('hicolor', 'scalable', 'apps')
install_data(
join_paths(scalable_dir, 'de.haeckerfelix.Remotely.svg'),
install_dir: join_paths(get_option('datadir'), 'icons', scalable_dir)
)
symbolic_dir = join_paths('hicolor', 'symbolic', 'apps')
install_data(
join_paths(symbolic_dir, 'de.haeckerfelix.Remotely-symbolic.svg'),
install_dir: join_paths(get_option('datadir'), 'icons', symbolic_dir)
)
......@@ -30,7 +30,4 @@ i18n.merge_file(
)
# Icons
install_subdir(
'icons/hicolor',
install_dir: join_paths(get_option('datadir'), 'icons')
)
subdir('icons')
......@@ -41,6 +41,7 @@
</object>
<packing>
<property name="submenu">main</property>
<property name="position">1</property>
</packing>
</child>
</object>
......@@ -659,9 +660,6 @@
<property name="name">new-connection</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child>
<object class="GtkBox" id="connection_box">
<property name="visible">True</property>
......@@ -703,7 +701,7 @@
</object>
<packing>
<property name="name">connection</property>
<property name="position">2</property>
<property name="position">1</property>
</packing>
</child>
</object>
......@@ -725,6 +723,8 @@
<object class="GtkFrame" id="notification">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_left">6</property>
<property name="margin_right">6</property>
<property name="label_xalign">0</property>
<property name="shadow_type">none</property>
<child>
......@@ -737,6 +737,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">...</property>
<property name="wrap">True</property>
</object>
<packing>
<property name="expand">False</property>
......@@ -749,6 +750,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="valign">center</property>
<signal name="clicked" handler="notification_close_button_clicked" swapped="no"/>
<child>
<object class="GtkImage">
......
This diff is collapsed.
......@@ -32,12 +32,7 @@ public class Remotely.Window : Gtk.ApplicationWindow {
[GtkChild] Stack connect_stack;
[GtkChild] Stack vnc_stack;
[GtkChild] HeaderBar header_bar;
[GtkChild] Revealer connection_revealer;
[GtkChild] RadioButton view_original_size;
[GtkChild] RadioButton view_fit_to_window;
[GtkChild] RadioButton view_optiscale;
[GtkChild] CheckButton view_only_checkbutton;
[GtkChild] Revealer notification_revealer;
......@@ -152,6 +147,9 @@ public class Remotely.Window : Gtk.ApplicationWindow {
[GtkCallback]
private void connect_button_clicked(){
if (connect_entry.get_text() == "" ||connect_entry.get_text() == null)
return;
string[] connection = (connect_entry.get_text()).split(":");
if(connection[1] == null) connection[1] = "5900";
if(int.parse(connection[1]) < 5900) connection[1] = (int.parse(connection[1])+5900).to_string();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment