Changed the snippet icon, set it as the favicon.

master
Pacman Ghost 6 years ago
parent 7b810f03d8
commit 8e13cae682
  1. 6
      vasl_templates/main_window.py
  2. 2
      vasl_templates/webapp/static/css/main.css
  3. BIN
      vasl_templates/webapp/static/images/snippet-disabled.png
  4. BIN
      vasl_templates/webapp/static/images/snippet-hot.png
  5. BIN
      vasl_templates/webapp/static/images/snippet.png
  6. 2
      vasl_templates/webapp/templates/index.html

@ -1,11 +1,12 @@
""" Main application window. """
import os
import re
from PyQt5.QtWidgets import QWidget, QVBoxLayout, QLabel, QMessageBox
from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEngineProfile, QWebEnginePage
from PyQt5.QtWebChannel import QWebChannel
from PyQt5.QtGui import QDesktopServices
from PyQt5.QtGui import QDesktopServices, QIcon
from PyQt5.QtCore import QUrl, pyqtSlot
from vasl_templates.webapp.config.constants import APP_NAME
@ -40,6 +41,9 @@ class MainWindow( QWidget ):
# initialize
self.setWindowTitle( APP_NAME )
self.setWindowIcon( QIcon(
os.path.join( os.path.split(__file__)[0], "webapp/static/images/snippet.png" )
) )
# initialize the layout
# FUDGE! We offer the option to disable the QWebEngineView since getting it to run

@ -78,7 +78,7 @@ fieldset legend { padding: 0 0.2em 0 0.2em ; font-style: italic ; font-weight: b
.ui-selectmenu-button { padding: 2px 5px ; }
.snippet-control button.generate { height: 26px ; padding: 2px 10px 2px 5px ; }
.snippet-control button.generate img { height: 20px ; margin-right: 3px ; vertical-align: middle ; }
.snippet-control button.generate img { height: 20px ; margin-right: 5px ; vertical-align: middle ; }
.snippet-control .ui-selectmenu-button { padding: 2px 10px ; }
.snippet-control-menu-item { font-size: 75% ; font-style: italic ; }
.snippet-control .ui-selectmenu-button-closed { height: 26px ; }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

@ -4,7 +4,7 @@
<head>
<meta charset="utf-8">
<title> {{APP_NAME}} </title>
<link rel="shortcut icon" href="{{url_for('static', filename='images/favicon.ico')}}">
<link rel="shortcut icon" href="{{url_for('static', filename='images/snippet.png')}}">
<link rel="stylesheet" type="text/css" href="{{url_for('static',filename='jquery-ui/jquery-ui.min.css')}}" />
<link rel="stylesheet" type="text/css" href="{{url_for('static',filename='growl/jquery.growl.css')}}" />
<link rel="stylesheet" type="text/css" href="{{url_for('static',filename='popmenu/jquery.popmenu.css')}}" />

Loading…
Cancel
Save