changed new post icons to monochrome
This commit is contained in:
parent
4c0250b64f
commit
033962bc41
7 changed files with 23 additions and 8 deletions
|
@ -13,7 +13,6 @@ import shutil
|
||||||
class Bungloo:
|
class Bungloo:
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
print __file__
|
|
||||||
self.app = QtGui.QApplication(sys.argv)
|
self.app = QtGui.QApplication(sys.argv)
|
||||||
self.new_message_windows = []
|
self.new_message_windows = []
|
||||||
self.controller = Controller(self)
|
self.controller = Controller(self)
|
||||||
|
@ -36,7 +35,7 @@ class Bungloo:
|
||||||
return Helper.Helper.get_resource_path()
|
return Helper.Helper.get_resource_path()
|
||||||
|
|
||||||
def resources_uri(self):
|
def resources_uri(self):
|
||||||
return "file://localhost" + os.path.abspath(os.path.join(self.resources_path(), "WebKit"))
|
return "file://localhost/" + os.path.abspath(os.path.join(self.resources_path(), "WebKit"))
|
||||||
|
|
||||||
def login_with_entity(self, entity):
|
def login_with_entity(self, entity):
|
||||||
self.controller.setStringForKey(entity, "entity")
|
self.controller.setStringForKey(entity, "entity")
|
||||||
|
|
|
@ -62,12 +62,12 @@ class WebViewCreator(QtWebKit.QWebView):
|
||||||
|
|
||||||
js_plugin_path = os.path.expanduser('~/.bungloo/Plugin.js')
|
js_plugin_path = os.path.expanduser('~/.bungloo/Plugin.js')
|
||||||
if os.access(js_plugin_path, os.R_OK):
|
if os.access(js_plugin_path, os.R_OK):
|
||||||
func = "setTimeout(function() { loadJsPlugin('file://localhost" + js_plugin_path + "') }, 1000);"
|
func = "setTimeout(function() { loadJsPlugin('file://localhost/" + js_plugin_path + "') }, 1000);"
|
||||||
frame.evaluateJavaScript(func)
|
frame.evaluateJavaScript(func)
|
||||||
|
|
||||||
css_plugin_path = os.path.expanduser('~/.bungloo/Plugin.css')
|
css_plugin_path = os.path.expanduser('~/.bungloo/Plugin.css')
|
||||||
if os.access(css_plugin_path, os.R_OK):
|
if os.access(css_plugin_path, os.R_OK):
|
||||||
func = "setTimeout(function() { loadCssPlugin('file://localhost" + css_plugin_path + "') }, 1000);"
|
func = "setTimeout(function() { loadCssPlugin('file://localhost/" + css_plugin_path + "') }, 1000);"
|
||||||
frame.evaluateJavaScript(func)
|
frame.evaluateJavaScript(func)
|
||||||
|
|
||||||
if callback:
|
if callback:
|
||||||
|
|
|
@ -294,6 +294,11 @@ class NewPost(Helper.RestorableWindow):
|
||||||
sendPostAction.setStatusTip("Send post")
|
sendPostAction.setStatusTip("Send post")
|
||||||
sendPostAction.triggered.connect(self.sendMessage)
|
sendPostAction.triggered.connect(self.sendMessage)
|
||||||
|
|
||||||
|
togglePrivateAction = QtGui.QAction("&Toggle private", self)
|
||||||
|
togglePrivateAction.setShortcut("Ctrl+P")
|
||||||
|
togglePrivateAction.setStatusTip("Toogle if private post")
|
||||||
|
togglePrivateAction.triggered.connect(self.toggleIsPrivate)
|
||||||
|
|
||||||
exitAction = QtGui.QAction("&Exit", self)
|
exitAction = QtGui.QAction("&Exit", self)
|
||||||
exitAction.setShortcut("Ctrl+Q")
|
exitAction.setShortcut("Ctrl+Q")
|
||||||
exitAction.setStatusTip("Exit Bungloo")
|
exitAction.setStatusTip("Exit Bungloo")
|
||||||
|
@ -303,6 +308,7 @@ class NewPost(Helper.RestorableWindow):
|
||||||
fileMenu = menubar.addMenu("&File")
|
fileMenu = menubar.addMenu("&File")
|
||||||
fileMenu.addAction(newPostAction)
|
fileMenu.addAction(newPostAction)
|
||||||
fileMenu.addAction(sendPostAction)
|
fileMenu.addAction(sendPostAction)
|
||||||
|
fileMenu.addAction(togglePrivateAction)
|
||||||
fileMenu.addAction(exitAction)
|
fileMenu.addAction(exitAction)
|
||||||
|
|
||||||
timelineAction = QtGui.QAction("&Timeline", self)
|
timelineAction = QtGui.QAction("&Timeline", self)
|
||||||
|
@ -315,6 +321,11 @@ class NewPost(Helper.RestorableWindow):
|
||||||
mentionsAction.setStatusTip("Show Mentions")
|
mentionsAction.setStatusTip("Show Mentions")
|
||||||
mentionsAction.triggered.connect(self.app.mentions_show)
|
mentionsAction.triggered.connect(self.app.mentions_show)
|
||||||
|
|
||||||
|
findEntityAction = QtGui.QAction("&Open Profile", self)
|
||||||
|
findEntityAction.setShortcut("Ctrl+u")
|
||||||
|
findEntityAction.setStatusTip("Find entity and open its profile view")
|
||||||
|
findEntityAction.triggered.connect(self.app.find_entity_show)
|
||||||
|
|
||||||
hideAction = QtGui.QAction("&Hide window", self)
|
hideAction = QtGui.QAction("&Hide window", self)
|
||||||
hideAction.setShortcut("Ctrl+W")
|
hideAction.setShortcut("Ctrl+W")
|
||||||
hideAction.setStatusTip("Hide this window")
|
hideAction.setStatusTip("Hide this window")
|
||||||
|
@ -323,6 +334,7 @@ class NewPost(Helper.RestorableWindow):
|
||||||
windowMenu = menubar.addMenu("&Windows")
|
windowMenu = menubar.addMenu("&Windows")
|
||||||
windowMenu.addAction(timelineAction)
|
windowMenu.addAction(timelineAction)
|
||||||
windowMenu.addAction(mentionsAction)
|
windowMenu.addAction(mentionsAction)
|
||||||
|
windowMenu.addAction(findEntityAction)
|
||||||
windowMenu.addAction(hideAction)
|
windowMenu.addAction(hideAction)
|
||||||
|
|
||||||
self.statusBar().showMessage('256')
|
self.statusBar().showMessage('256')
|
||||||
|
@ -331,7 +343,8 @@ class NewPost(Helper.RestorableWindow):
|
||||||
self.addButton.setToolTip("Add photo")
|
self.addButton.setToolTip("Add photo")
|
||||||
self.addButton.clicked.connect(self.openFileDialog)
|
self.addButton.clicked.connect(self.openFileDialog)
|
||||||
self.addButton.setAutoRaise(True)
|
self.addButton.setAutoRaise(True)
|
||||||
addIcon = QtGui.QIcon.fromTheme("insert-image", QtGui.QIcon(self.app.resources_path() + "/images/Actions-insert-image-icon.png"));
|
#addIcon = QtGui.QIcon.fromTheme("insert-image", QtGui.QIcon(self.app.resources_path() + "/images/Actions-insert-image-icon.png"))
|
||||||
|
addIcon = QtGui.QIcon(self.app.resources_path() + "/images/glyphicons_138_picture.png")
|
||||||
self.addButton.setIcon(addIcon)
|
self.addButton.setIcon(addIcon)
|
||||||
self.statusBar().addPermanentWidget(self.addButton)
|
self.statusBar().addPermanentWidget(self.addButton)
|
||||||
|
|
||||||
|
@ -339,8 +352,10 @@ class NewPost(Helper.RestorableWindow):
|
||||||
self.isPrivateButton.setToolTip("Make private")
|
self.isPrivateButton.setToolTip("Make private")
|
||||||
self.isPrivateButton.clicked.connect(self.toggleIsPrivate)
|
self.isPrivateButton.clicked.connect(self.toggleIsPrivate)
|
||||||
self.isPrivateButton.setAutoRaise(True)
|
self.isPrivateButton.setAutoRaise(True)
|
||||||
self.isPrivateIcon = QtGui.QIcon(self.app.resources_path() + "/images/Lock-Lock-icon.png")
|
#self.isPrivateIcon = QtGui.QIcon(self.app.resources_path() + "/images/Lock-Lock-icon.png")
|
||||||
self.isNotPrivateIcon = QtGui.QIcon(self.app.resources_path() + "/images/Lock-Unlock-icon.png")
|
self.isPrivateIcon = QtGui.QIcon(self.app.resources_path() + "/images/glyphicons_203_lock.png")
|
||||||
|
#self.isNotPrivateIcon = QtGui.QIcon(self.app.resources_path() + "/images/Lock-Unlock-icon.png")
|
||||||
|
self.isNotPrivateIcon = QtGui.QIcon(self.app.resources_path() + "/images/glyphicons_204_unlock.png")
|
||||||
self.isPrivateButton.setIcon(self.isNotPrivateIcon)
|
self.isPrivateButton.setIcon(self.isNotPrivateIcon)
|
||||||
self.statusBar().addPermanentWidget(self.isPrivateButton)
|
self.statusBar().addPermanentWidget(self.isPrivateButton)
|
||||||
|
|
||||||
|
@ -348,7 +363,8 @@ class NewPost(Helper.RestorableWindow):
|
||||||
self.sendButton.setToolTip("Send")
|
self.sendButton.setToolTip("Send")
|
||||||
self.sendButton.clicked.connect(self.sendMessage)
|
self.sendButton.clicked.connect(self.sendMessage)
|
||||||
self.sendButton.setAutoRaise(True)
|
self.sendButton.setAutoRaise(True)
|
||||||
sendIcon = QtGui.QIcon.fromTheme("mail-send", QtGui.QIcon(self.app.resources_path() + "/images/send-icon.png"))
|
#sendIcon = QtGui.QIcon.fromTheme("mail-send", QtGui.QIcon(self.app.resources_path() + "/images/send-icon.png"))
|
||||||
|
sendIcon = QtGui.QIcon(self.app.resources_path() + "/images/glyphicons_123_message_out.png")
|
||||||
self.sendButton.setIcon(sendIcon)
|
self.sendButton.setIcon(sendIcon)
|
||||||
self.statusBar().addPermanentWidget(self.sendButton)
|
self.statusBar().addPermanentWidget(self.sendButton)
|
||||||
|
|
||||||
|
|
BIN
images/glyphicons_123_message_out.png
Normal file
BIN
images/glyphicons_123_message_out.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 320 B |
BIN
images/glyphicons_138_picture.png
Normal file
BIN
images/glyphicons_138_picture.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 338 B |
BIN
images/glyphicons_203_lock.png
Normal file
BIN
images/glyphicons_203_lock.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 325 B |
BIN
images/glyphicons_204_unlock.png
Normal file
BIN
images/glyphicons_204_unlock.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 231 B |
Reference in a new issue