From 712c9b2c57c6e53604408c6bd5ae5b5e07bf44c8 Mon Sep 17 00:00:00 2001 From: Igor Belitskiy Date: Thu, 23 Mar 2023 18:06:12 +0600 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20css=20=D0=B2=D1=8B=D0=B4=D0=B5=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=B8=D0=BA=D0=BE=D0=BD=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- #ublexec.glade# | 2093 +++++++++++++++++++++++++++++++++++++++++++++ source/ublexec.cc | 4 +- ublexec.css | 6 +- 3 files changed, 2098 insertions(+), 5 deletions(-) create mode 100644 #ublexec.glade# diff --git a/#ublexec.glade# b/#ublexec.glade# new file mode 100644 index 0000000..65fe3f9 --- /dev/null +++ b/#ublexec.glade# @@ -0,0 +1,2093 @@ + + + + + + True + True + 6 + + + False + О Программе + False + True + center + com.ublinux.ublexec + dialog + True + False + False + ublexec + 1.0 + Copyright © UBSoft LLC, 2022 - + ublexec + https://ublinux.ru/ + Project Home Page + Это приложение распространяется без каких-либо гарантий. +Подробнее в <a href="https://www.gnu.org/licenses/old-licenses/gpl-2.0.html">GNU General Public License, версии 2 или позднее</a>. + UBGroup + UBGroup + com.ublinux.ublexec + True + gpl-2-0 + + + False + vertical + 2 + + + False + 5 + 5 + 5 + 5 + 6 + 6 + end + + + + + + False + False + 0 + + + + + + + + + + -20 + 19 + 1 + 10 + + + True + False + + + True + False + 5 + 5 + 5 + 5 + 6 + 6 + 69 + com.ublinux.ublexec + + + False + True + 0 + + + + + True + False + start + 5 + 5 + 5 + 5 + 6 + 6 + Run applications as another user +with the specified priority + + + + + + + False + True + 1 + + + + + 410 + 240 + False + com.ublinux.ublexec + + + True + False + vertical + + + True + True + in + + + True + False + 5 + 5 + 5 + 5 + 5 + natural + + + True + False + 1 + 1 + 5 + 0 + etched-out + + + True + False + 12 + + + True + False + vertical + + + True + True + + + True + False + + + True + False + 7 + 7 + 7 + 7 + + + False + True + 0 + + + + + True + True + 1 + horizontal + 1 + 350 + 1 + 1 + 1 + + + + 5 + 5 + 6 + 2 + + + + + + 4 + 5 + + + + + + False + True + 1 + + + + + + + True + False + Graphics + + + + + False + True + 1 + + + + + True + True + + + True + False + + + True + False + 7 + 7 + 7 + 7 + + + False + True + 0 + + + + + True + True + 1 + queue + horizontal + 1 + 350 + 1 + 1 + 1 + + + + 5 + 5 + 6 + 2 + + + + + + 5 + 4 + + + + + + False + True + 1 + + + + + + + True + False + Tools + + + + + False + True + 3 + + + + + True + True + 1 + + + True + False + + + True + False + 7 + 7 + 7 + 7 + + + False + True + 0 + + + + + True + True + 1 + queue + horizontal + 1 + 350 + 1 + 1 + 1 + + + + 5 + 5 + 6 + 2 + + + + + + 5 + 4 + + + + + + False + True + 1 + + + + + + + True + False + Internet + + + + + False + True + 5 + + + + + True + True + + + True + False + + + True + False + 7 + 7 + 7 + 7 + + + False + True + 0 + + + + + True + True + 1 + queue + horizontal + 1 + 350 + 1 + 1 + 1 + + + + 5 + 5 + 6 + 2 + + + + + + 5 + 4 + + + + + + False + True + 1 + + + + + + + True + False + Multimedia + + + + + False + True + 7 + + + + + True + True + + + True + False + + + True + False + 7 + 7 + 7 + 7 + + + False + True + 0 + + + + + True + True + 1 + queue + horizontal + 1 + 350 + 1 + 1 + 1 + + + + 5 + 5 + 6 + 2 + + + + + + 5 + 4 + + + + + + False + True + 1 + + + + + + + True + False + Settings + + + + + False + True + 9 + + + + + True + True + + + True + False + + + True + False + 7 + 7 + 7 + 7 + + + False + True + 0 + + + + + True + True + 1 + queue + horizontal + 1 + 350 + 1 + 1 + 1 + + + + 5 + 5 + 6 + 2 + + + + + + 5 + 4 + + + + + + False + True + 1 + + + + + + + True + False + Education + + + + + False + True + 11 + + + + + True + True + + + True + False + + + True + False + 7 + 7 + 7 + 7 + + + False + True + 0 + + + + + True + True + 1 + queue + horizontal + 1 + 350 + 1 + 1 + 1 + + + + 5 + 5 + 6 + 2 + + + + + + 5 + 4 + + + + + + False + True + 1 + + + + + + + True + False + Office + + + + + False + True + 13 + + + + + True + True + + + True + False + + + True + False + 7 + 7 + 7 + 7 + + + False + True + 0 + + + + + True + True + 1 + queue + horizontal + 1 + 350 + 1 + 1 + 1 + + + + 5 + 5 + 6 + 2 + + + + + + 5 + 4 + + + + + + False + True + 1 + + + + + + + True + False + Other + + + + + False + True + 15 + + + + + True + True + + + True + False + + + True + False + 7 + 7 + 7 + 7 + + + False + True + 0 + + + + + True + True + 1 + queue + horizontal + 1 + 350 + 1 + 1 + 1 + + + + 5 + 5 + 6 + 2 + + + + + + 5 + 4 + + + + + + False + True + 1 + + + + + + + True + False + Development + + + + + False + True + 17 + + + + + True + True + + + True + False + + + True + False + 7 + 7 + 7 + 7 + + + False + True + 0 + + + + + True + True + 1 + queue + horizontal + 1 + 350 + 1 + 1 + 1 + + + + 5 + 5 + 6 + 2 + + + + + + 5 + 4 + + + + + + False + True + 1 + + + + + + + True + False + System + + + + + False + True + 19 + + + + + + + + + + True + False + + + + + + + + + + + + True + True + 1 + + + + + True + False + end + start + + + gtk-cancel + True + True + True + 5 + 5 + 5 + 5 + 6 + 6 + True + + + True + True + 0 + + + + + gtk-ok + -1 + -1 + True + True + True + 5 + 5 + 5 + 5 + 6 + 6 + True + + + True + True + 1 + + + + + False + True + 2 + + + + + + + True + False + 5 + 5 + 5 + 5 + 6 + 6 + gtk-media-play + + + + + + + + + + + + + + + + + + + True + False + False + False + 4 + dropdown-menu + + + True + False + Help + + + + + + True + False + About + + + + + + False + com.ublinux.ublexec + + + True + False + vertical + + + True + False + + + 81 + True + False + start + + + -1 + + + + + False + True + 0 + + + + + True + False + vertical + + + True + False + vertical + + + True + False + True + vertical + + + True + False + 5 + 5 + 5 + 5 + 6 + 6 + True + 0.019999999552965164 + in + + + True + False + 5 + 5 + True + vertical + + + True + False + True + + + 0 + True + False + 5 + 5 + 5 + 5 + 6 + 6 + Team: + True + 0 + + + False + True + 0 + + + + + 440 + True + True + 5 + 5 + 5 + 5 + 6 + 6 + + + True + True + 1 + + + + + 51 + True + True + True + end + 5 + 5 + 5 + 5 + 6 + 6 + + + True + False + center + center + 5 + 5 + 5 + 5 + 3 + 3 + gtk-directory + + + + + False + True + 2 + + + + + 51 + True + True + True + end + 5 + 5 + 5 + 5 + 6 + 6 + + + True + False + center + center + 5 + 5 + 5 + 5 + view-list-details + + + + + False + True + 3 + + + + + False + True + 0 + + + + + True + False + 6 + 6 + True + + + 44 + True + False + 15 + 5 + 15 + 5 + + + False + True + 0 + + + + + True + True + False + start + center + 5 + 5 + 5 + 5 + 6 + True + + + True + False + Run in the terminal emulator + + + + + False + True + 1 + + + + + True + False + start + 2 + 5 + 5 + 6 + + + False + True + 2 + + + + + 116 + True + False + + + False + True + 3 + + + + + False + True + 1 + + + + + + + True + False + start + Command Line + + + + + True + True + 0 + + + + + False + True + 1 + + + + + True + False + 5 + True + vertical + + + True + False + 5 + 5 + 5 + 5 + True + 0.019999999552965164 + in + + + True + False + 5 + 5 + True + vertical + + + True + False + True + + + True + True + False + start + center + 5 + 5 + 5 + 5 + 6 + 6 + True + + + True + False + Run as another user: + + + + + False + True + 0 + + + + + pkexec + True + True + False + 6 + 6 + 6 + True + rbSu + + + False + True + 1 + + + + + su + True + True + False + 3 + 31 + 3 + 31 + True + rbPkexec + + + False + True + 2 + + + + + sudo + True + True + False + 6 + 6 + 6 + 6 + True + rbSu + + + False + True + 3 + + + + + 95 + True + False + end + 15 + 5 + 15 + 5 + + + False + True + 4 + + + + + False + True + 0 + + + + + True + False + True + + + 123 + True + False + 5 + 5 + 5 + 5 + 6 + 6 + User Name: + True + 0 + + + False + True + 0 + + + + + 374 + True + False + 5 + 5 + 5 + 5 + 6 + 6 + + + False + True + 1 + + + + + 0 + True + False + 100 + + + False + True + 2 + + + + + False + True + 1 + + + + + + + True + False + start + User + + + + + True + True + 0 + + + + + False + True + 2 + + + + + True + False + 5 + True + vertical + + + True + False + 5 + 5 + 5 + 5 + True + 0.019999999552965164 + in + + + True + False + 5 + 5 + True + vertical + + + True + True + False + start + center + 5 + 5 + 5 + 5 + 6 + 6 + True + + + True + False + Change startup priority + + + + + False + True + 0 + + + + + True + False + True + + + 5 + True + False + 5 + 5 + 5 + 5 + 13 + Priority: + True + 0 + + + False + True + 0 + + + + + -1 + True + True + 5 + 5 + 5 + 5 + adjustment1 + 20 + 0 + 0 + + + True + True + 1 + + + + + True + True + 5 + 5 + 5 + 5 + 15 + True + + + False + True + 2 + + + + + False + True + 1 + + + + + True + False + 9 + False + + + 62 + True + False + 15 + 5 + 15 + 5 + 0 + + + False + True + 0 + + + + + 145 + True + False + 5 + 5 + 5 + 5 + 6 + 19 (Low) + True + 0 + + + False + True + 1 + + + + + True + False + end + center + 5 + 5 + 5 + 5 + 6 + -20 (High) + True + 0 + + + True + True + 3 + + + + + 107 + True + False + end + 15 + 5 + 15 + 5 + + + False + True + 4 + + + + + False + True + 2 + + + + + + + True + False + start + Priority + + + + + True + True + 0 + + + + + False + True + 3 + + + + + Run + True + True + True + 5 + 5 + 5 + 5 + 6 + 6 + image1 + True + + + False + True + 4 + + + + + False + True + 0 + + + + + False + True + 2 + + + + + + + True + False + True + + + True + False + center + Ublexec + + + + + + + + True + False + 32 + com.ublinux.ublexec + + + + + True + False + + + True + True + False + True + True + menu1 + none + + + True + False + open-menu-symbolic + + + + + False + True + 0 + + + + + end + 1 + + + + + + + False + start + False + + + True + False + vertical + + + True + False + + + True + False + center + 20 + 20 + 20 + 20 + 20 + 20 + dialog-warning-symbolic + 6 + + + False + True + 1 + + + + + True + False + 10 + 25 + 10 + 25 + 20 + 20 + Select an executable file or program + True + 0 + + + True + True + 2 + + + + + True + True + 0 + + + + + Close + True + True + True + 5 + 5 + 5 + 5 + 5 + 5 + + + False + True + 2 + + + + + + + True + False + Warning! + True + + + True + False + 32 + com.ublinux.ublexec + 5 + + + + + + + False + Please select File + True + center + 500 + 400 + True + com.ublinux.ublexec + dialog + True + True + + + False + vertical + 2 + + + False + end + + + gtk-cancel + True + True + True + True + + + True + True + 0 + + + + + gtk-ok + True + True + True + True + + + True + True + 1 + + + + + False + False + 0 + + + + + + + + + diff --git a/source/ublexec.cc b/source/ublexec.cc index 880b847..ee3bb68 100644 --- a/source/ublexec.cc +++ b/source/ublexec.cc @@ -142,7 +142,7 @@ void MainWindow::add_CSS() { Glib::RefPtr context_lbl_head = lblInfoHead->get_style_context(); Glib::RefPtr boxAbout_css = boxAbout->get_style_context(); imgHeadBackground->set(path_img_head_background); - for (auto &view: array_icon){ + for (auto &view: array_icon) { Glib::RefPtr view_css = view->get_style_context(); view_css->add_class("view_app"); } @@ -312,10 +312,8 @@ bool MainWindow::focus_in_txt_cmd(GdkEventFocus* event) { if (user_cmd.length() != 0) { } else if (name_app.length() != 0) { - //name_app = ""; } else if (path_file.length() != 0) { - //path_file = ""; } else{ user_cmd = txtCmd->get_text(); diff --git a/ublexec.css b/ublexec.css index 1d11aca..1e33f1c 100644 --- a/ublexec.css +++ b/ublexec.css @@ -8,9 +8,11 @@ .view_app { background-color: @theme_bg_color; } -.view_app:active { - background-color: @theme_selected_bg_color; +.view_app.view.cell:selected { + background-color:@theme_selected_bg_color; + color:@theme_selected_text_color; transition: 10ms ease-out; + border-radius: 3px; } #GnomeIcon{ border-style:solid;